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

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: 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 7db5498373ec3b3098c19f3a2db58323c86a33c9..4da98bd3cf5af9cad74e3a3531fc5c5391b60137 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 {
@@ -34,6 +35,8 @@ ClientSession::ClientSession(
connection_->set_clipboard_stub(this);
connection_->set_host_stub(this);
connection_->set_input_stub(this);
+ clipboard_duplicate_filter_.set_to_host(host_event_stub_);
+ clipboard_duplicate_filter_.set_to_client(connection_->client_stub());
Wez 2012/05/16 20:51:43 Is client_stub() actually valid at this point, or
simonmorris 2012/05/16 22:35:25 I've moved this line to OnConnectionAuthenticated(
}
ClientSession::~ClientSession() {
@@ -50,7 +53,7 @@ void ClientSession::InjectClipboardEvent(
if (disable_input_filter_.input_stub() == NULL)
return;
- host_event_stub_->InjectClipboardEvent(event);
+ clipboard_duplicate_filter_.get_filter_to_host()->InjectClipboardEvent(event);
}
void ClientSession::InjectKeyEvent(const protocol::KeyEvent& event) {

Powered by Google App Engine
This is Rietveld 408576698