Add FileTransferMessageHandler
Bug:
Change-Id: I9ef42523abac94de6ebc51fdb06a885cd02f0664
Reviewed-on: https://chromium-review.googlesource.com/603007
Commit-Queue: Joseph Arhar <[email protected]>
Reviewed-by: Joe Downing <[email protected]>
Cr-Commit-Position: refs/heads/master@{#492708}
diff --git a/remoting/host/file_transfer_message_handler.h b/remoting/host/file_transfer_message_handler.h
new file mode 100644
index 0000000..dca3315
--- /dev/null
+++ b/remoting/host/file_transfer_message_handler.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_FILE_TRANSFER_MESSAGE_HANDLER_H_
+#define REMOTING_HOST_FILE_TRANSFER_MESSAGE_HANDLER_H_
+
+#include "remoting/protocol/named_message_pipe_handler.h"
+
+namespace remoting {
+
+class FileTransferMessageHandler : public protocol::NamedMessagePipeHandler {
+ public:
+ FileTransferMessageHandler(const std::string& name,
+ std::unique_ptr<protocol::MessagePipe> pipe);
+ ~FileTransferMessageHandler() override;
+
+ // protocol::NamedMessagePipeHandler implementation.
+ void OnConnected() override;
+ void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override;
+ void OnDisconnecting() override;
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_FILE_TRANSFER_MESSAGE_HANDLER_H_