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

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: done Created 9 years, 8 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/proto/video.proto ('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 19dbdf5a7084158f2e2a1cb1ee47d237bd1dc95c..c3f424c45b37ed242a50c5e328123173f227df29 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();
« no previous file with comments | « remoting/proto/video.proto ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698