Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: remoting/host/client_session.cc

Issue 10413060: [Chromoting] Let the Windows IT2Me host send clipboard events to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct fix. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/clipboard.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698