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

Unified Diff: remoting/protocol/connection_to_client.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/connection_to_client.h
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index 19dbdf5a7084158f2e2a1cb1ee47d237bd1dc95c..e344de0a9ee29c7415a0b558f23f86823264074b 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
+#include "base/synchronization/lock.h"
#include "remoting/protocol/session.h"
#include "remoting/protocol/video_writer.h"
@@ -42,6 +43,10 @@ class ConnectionToClient :
// Called when the network connection has failed.
virtual void OnConnectionFailed(ConnectionToClient* connection) = 0;
+
+ // Called when sequence number is updated.
+ virtual void OnSequenceNumberUpdated(ConnectionToClient* connection,
+ int64 sequence_number) = 0;
};
// Constructs a ConnectionToClient object. |message_loop| is the message loop
@@ -62,6 +67,10 @@ class ConnectionToClient :
// After this method is called all the send method calls will be ignored.
virtual void Disconnect();
+ // Update the sequence number when received from the client. EventHandler
+ // will be called.
+ virtual void UpdateSequenceNumber(int64 sequence_number);
+
// Send encoded update stream data to the viewer.
virtual VideoStub* video_stub();
@@ -108,6 +117,9 @@ class ConnectionToClient :
// Dispatcher for submitting messages to stubs.
scoped_ptr<HostMessageDispatcher> dispatcher_;
+ // Sequence number received from client to trace performance.
+ int sequence_number_;
simonmorris 2011/04/05 10:47:06 Not needed.
Alpha Left Google 2011/04/08 00:07:20 Done.
+
DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
};

Powered by Google App Engine
This is Rietveld 408576698