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

Unified Diff: remoting/host/client_session.cc

Issue 11817048: Revert 175648 because it causes http://crbug.com/169126. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/client_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
===================================================================
--- remoting/host/client_session.cc (revision 176125)
+++ remoting/host/client_session.cc (working copy)
@@ -41,10 +41,13 @@
connection_factory_(connection_.get()),
desktop_environment_(desktop_environment_factory->Create()),
client_jid_(connection_->session()->jid()),
- input_tracker_(&host_input_filter_),
+ host_clipboard_stub_(desktop_environment_->event_executor()),
+ host_input_stub_(desktop_environment_->event_executor()),
+ input_tracker_(host_input_stub_),
remote_input_filter_(&input_tracker_),
- mouse_clamping_filter_(&remote_input_filter_, connection_->video_stub()),
- disable_input_filter_(mouse_clamping_filter_.input_filter()),
+ mouse_clamping_filter_(desktop_environment_->video_capturer(),
+ &remote_input_filter_),
+ disable_input_filter_(&mouse_clamping_filter_),
disable_clipboard_filter_(clipboard_echo_filter_.host_filter()),
auth_input_filter_(&disable_input_filter_),
auth_clipboard_filter_(&disable_clipboard_filter_),
@@ -63,6 +66,7 @@
connection_->set_clipboard_stub(&auth_clipboard_filter_);
connection_->set_host_stub(this);
connection_->set_input_stub(&auth_input_filter_);
+ clipboard_echo_filter_.set_host_stub(host_clipboard_stub_);
// |auth_*_filter_|'s states reflect whether the session is authenticated.
auth_input_filter_.set_enabled(false);
@@ -123,11 +127,6 @@
protocol::ConnectionToClient* connection) {
DCHECK(CalledOnValidThread());
DCHECK_EQ(connection_.get(), connection);
-
- // Connect the host clipboard and input stubs.
- host_input_filter_.set_input_stub(desktop_environment_->event_executor());
- clipboard_echo_filter_.set_host_stub(desktop_environment_->event_executor());
-
SetDisableInputs(false);
// Let the desktop environment notify us of local clipboard changes.
@@ -149,7 +148,7 @@
desktop_environment_->video_capturer(),
video_encoder.Pass(),
connection_->client_stub(),
- &mouse_clamping_filter_);
+ connection_->video_stub());
++active_recorders_;
// Create an AudioScheduler if audio is enabled, to pump audio samples.
Property changes on: remoting\host\client_session.cc
___________________________________________________________________
Deleted: svn:mergeinfo
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698