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

Unified Diff: remoting/host/client_session.h

Issue 10823244: Remove the HostEventStub aggregate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 6a592033031db5a9812d970e4dfdc4789000e0df..39b2273d1ffa84e5629b4f18a725f3183f783890 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -14,7 +14,6 @@
#include "remoting/protocol/clipboard_echo_filter.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/connection_to_client.h"
-#include "remoting/protocol/host_event_stub.h"
#include "remoting/protocol/host_stub.h"
#include "remoting/protocol/input_event_tracker.h"
#include "remoting/protocol/input_filter.h"
@@ -28,8 +27,9 @@ class VideoFrameCapturer;
// A ClientSession keeps a reference to a connection to a client, and maintains
// per-client state.
-class ClientSession : public protocol::HostEventStub,
+class ClientSession : public protocol::ClipboardStub,
public protocol::HostStub,
+ public protocol::InputStub,
public protocol::ConnectionToClient::EventHandler,
public base::NonThreadSafe {
public:
@@ -68,7 +68,8 @@ class ClientSession : public protocol::HostEventStub,
ClientSession(EventHandler* event_handler,
scoped_ptr<protocol::ConnectionToClient> connection,
- protocol::HostEventStub* host_event_stub,
+ protocol::ClipboardStub* host_clipboard_stub,
+ protocol::InputStub* host_input_stub,
VideoFrameCapturer* capturer,
const base::TimeDelta& max_duration);
virtual ~ClientSession();
@@ -136,9 +137,11 @@ class ClientSession : public protocol::HostEventStub,
std::string client_jid_;
bool is_authenticated_;
- // The host event stub to which this object delegates. This is the final
- // element in the input pipeline, whose components appear in order below.
- protocol::HostEventStub* host_event_stub_;
+ // The host clipboard and input stubs to which this object delegates.
+ // These are the final elements in the clipboard & input pipelines, which
+ // appear in order below.
+ protocol::ClipboardStub* host_clipboard_stub_;
+ protocol::InputStub* host_input_stub_;
// Tracker used to release pressed keys and buttons when disconnecting.
protocol::InputEventTracker input_tracker_;
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698