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

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: Don't ref-count ClipboardThreadProxy. 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
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 86a6753d3e55d57c65c506065572b40d4e6b8190..c922b770da803ce5281ca556caa6ef2cfe89a1e9 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -27,6 +27,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 +165,14 @@ void ClientSession::SetDisableInputs(bool disable_inputs) {
}
}
+scoped_ptr<protocol::ClipboardThreadProxy>
+ClientSession::CreateClipboardProxy() {
+ DCHECK(CalledOnValidThread());
+
+ return scoped_ptr<protocol::ClipboardThreadProxy>(
+ new protocol::ClipboardThreadProxy(
+ client_clipboard_factory_.GetWeakPtr(),
+ base::MessageLoopProxy::current()));
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698