Index: remoting/protocol/client_control_dispatcher.cc |
diff --git a/remoting/protocol/client_control_dispatcher.cc b/remoting/protocol/client_control_dispatcher.cc |
index e9b7d09c311f7ce6bd69bcd1cc8f88f92dcbe2d6..d8b5baa4fccf4311a1b406310777ded049f27403 100644 |
--- a/remoting/protocol/client_control_dispatcher.cc |
+++ b/remoting/protocol/client_control_dispatcher.cc |
@@ -13,6 +13,7 @@ |
#include "remoting/proto/internal.pb.h" |
#include "remoting/protocol/buffered_socket_writer.h" |
#include "remoting/protocol/client_stub.h" |
+#include "remoting/protocol/util.h" |
namespace remoting { |
namespace protocol { |
@@ -34,6 +35,13 @@ void ClientControlDispatcher::OnInitialized() { |
&ClientControlDispatcher::OnMessageReceived, base::Unretained(this))); |
} |
+void ClientControlDispatcher::InjectClipboardEvent( |
+ const ClipboardEvent& event) { |
+ ControlMessage message; |
+ message.mutable_clipboard_event()->CopyFrom(event); |
+ writer_->Write(SerializeAndFrameMessage(message), base::Closure()); |
+} |
+ |
void ClientControlDispatcher::OnMessageReceived( |
ControlMessage* message, const base::Closure& done_task) { |
DCHECK(client_stub_); |