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

Unified Diff: remoting/host/client_session.cc

Issue 10399052: [Chromoting] Add a filter that will stop the host sending unnecessary clipboard events to the clien… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. 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/protocol/client_stub.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 180ecc8b11b4c6a031a9619d32b9f177393a3b48..86a6753d3e55d57c65c506065572b40d4e6b8190 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -10,6 +10,7 @@
#include "remoting/host/capturer.h"
#include "remoting/proto/control.pb.h"
#include "remoting/proto/event.pb.h"
+#include "remoting/protocol/client_stub.h"
namespace remoting {
@@ -35,6 +36,7 @@ ClientSession::ClientSession(
connection_->set_clipboard_stub(this);
connection_->set_host_stub(this);
connection_->set_input_stub(this);
+ clipboard_echo_filter_.set_host_stub(host_event_stub_);
}
ClientSession::~ClientSession() {
@@ -51,7 +53,7 @@ void ClientSession::InjectClipboardEvent(
if (disable_input_filter_.input_stub() == NULL)
return;
- host_event_stub_->InjectClipboardEvent(event);
+ clipboard_echo_filter_.host_filter()->InjectClipboardEvent(event);
}
void ClientSession::InjectKeyEvent(const protocol::KeyEvent& event) {
@@ -93,6 +95,7 @@ void ClientSession::OnConnectionAuthenticated(
DCHECK_EQ(connection_.get(), connection);
is_authenticated_ = true;
auth_input_filter_.set_input_stub(&disable_input_filter_);
+ clipboard_echo_filter_.set_client_stub(connection_->client_stub());
event_handler_->OnSessionAuthenticated(this);
}
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/protocol/client_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698