summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/connection_to_client.h')
-rw-r--r--remoting/protocol/connection_to_client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index 19dbdf5..c3f424c 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();