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

Unified Diff: remoting/protocol/connection_to_client.h

Issue 8476018: Move ConnectionToClient::EventHandler from ChromotingHost to ClientSession (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 1 month 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/screen_recorder_unittest.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_client.h
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index fc892d0cff15d053393c2cc009a426f5ca682cc8..3f347023d95a3114fc251a468382b298206d0b7a 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -53,14 +53,15 @@ class ConnectionToClient :
int64 sequence_number) = 0;
};
- // Constructs a ConnectionToClient object. |message_loop| is the message loop
- // that this object runs on. A viewer object receives events and messages from
- // a libjingle channel, these events are delegated to |handler|.
- // It is guaranteed that |handler| is called only on the |message_loop|.
- ConnectionToClient(base::MessageLoopProxy* message_loop,
- EventHandler* handler);
-
- virtual void Init(Session* session);
+ // Constructs a ConnectionToClient object for the
+ // |session|. |message_loop| is the message loop that this object
+ // runs on.
+ ConnectionToClient(base::MessageLoopProxy* message_loop, Session* session);
+
+ // Set |event_handler| for connection events. |event_handler| is
+ // guaranteed to be used only on the network thread. Must be called
+ // once when this object is created.
+ void SetEventHandler(EventHandler* event_handler);
// Returns the connection in use.
virtual Session* session();
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698