Joseph Arhar | 9c1334b | 2017-08-08 18:35:20 | [diff] [blame^] | 1 | // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef REMOTING_HOST_FILE_TRANSFER_MESSAGE_HANDLER_H_ |
| 6 | #define REMOTING_HOST_FILE_TRANSFER_MESSAGE_HANDLER_H_ |
| 7 | |
| 8 | #include "remoting/protocol/named_message_pipe_handler.h" |
| 9 | |
| 10 | namespace remoting { |
| 11 | |
| 12 | class FileTransferMessageHandler : public protocol::NamedMessagePipeHandler { |
| 13 | public: |
| 14 | FileTransferMessageHandler(const std::string& name, |
| 15 | std::unique_ptr<protocol::MessagePipe> pipe); |
| 16 | ~FileTransferMessageHandler() override; |
| 17 | |
| 18 | // protocol::NamedMessagePipeHandler implementation. |
| 19 | void OnConnected() override; |
| 20 | void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override; |
| 21 | void OnDisconnecting() override; |
| 22 | }; |
| 23 | |
| 24 | } // namespace remoting |
| 25 | |
| 26 | #endif // REMOTING_HOST_FILE_TRANSFER_MESSAGE_HANDLER_H_ |