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

Unified Diff: remoting/protocol/host_message_dispatcher.h

Issue 6792038: Chromoting to report roundtrip latency (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add scriptable interface Created 9 years, 9 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/protocol/host_message_dispatcher.h
diff --git a/remoting/protocol/host_message_dispatcher.h b/remoting/protocol/host_message_dispatcher.h
index 5752f95219e142b5a4d268aef88c12080b704fd3..67df286beec98f7959201f8ea4bbb61803f6c081 100644
--- a/remoting/protocol/host_message_dispatcher.h
+++ b/remoting/protocol/host_message_dispatcher.h
@@ -13,6 +13,7 @@
namespace remoting {
namespace protocol {
+class ConnectionToClient;
class ControlMessage;
class EventMessage;
class HostStub;
@@ -37,7 +38,7 @@ class HostMessageDispatcher {
// Initialize the message dispatcher with the given connection and
// message handlers.
- void Initialize(protocol::Session* session,
+ void Initialize(ConnectionToClient* connection,
simonmorris 2011/04/05 10:47:06 Does HostMessageDispatcher need to use ConnectionT
Alpha Left Google 2011/04/08 00:07:20 We don't want to expose sequence number to the stu
simonmorris 2011/04/08 08:18:25 UpdateSequenceNumber() ends up at the ScreenRecord
HostStub* host_stub, InputStub* input_stub);
private:
@@ -57,6 +58,9 @@ class HostMessageDispatcher {
// MessageReader that runs on the event channel.
scoped_ptr<ProtobufMessageReader<EventMessage> > event_message_reader_;
+ // Connection that this object belongs to.
+ ConnectionToClient* connection_;
+
// Stubs for host and input. These objects are not owned.
// They are called on the thread there data is received, i.e. jingle thread.
HostStub* host_stub_;

Powered by Google App Engine
This is Rietveld 408576698