Index: remoting/host/client_session.cc |
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc |
index 86a6753d3e55d57c65c506065572b40d4e6b8190..dd32400798d757cad8f30a603d8aed2e94c0feb1 100644 |
--- a/remoting/host/client_session.cc |
+++ b/remoting/host/client_session.cc |
@@ -11,6 +11,7 @@ |
#include "remoting/proto/control.pb.h" |
#include "remoting/proto/event.pb.h" |
#include "remoting/protocol/client_stub.h" |
+#include "remoting/protocol/clipboard_thread_proxy.h" |
namespace remoting { |
@@ -27,6 +28,7 @@ ClientSession::ClientSession( |
input_tracker_(host_event_stub_), |
remote_input_filter_(&input_tracker_), |
mouse_input_filter_(&remote_input_filter_), |
+ client_clipboard_factory_(clipboard_echo_filter_.client_filter()), |
capturer_(capturer) { |
connection_->SetEventHandler(this); |
@@ -164,4 +166,13 @@ void ClientSession::SetDisableInputs(bool disable_inputs) { |
} |
} |
+scoped_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() { |
+ DCHECK(CalledOnValidThread()); |
+ |
+ return scoped_ptr<protocol::ClipboardStub>( |
+ new protocol::ClipboardThreadProxy( |
+ client_clipboard_factory_.GetWeakPtr(), |
+ base::MessageLoopProxy::current())); |
+} |
+ |
} // namespace remoting |