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

Unified Diff: remoting/protocol/connection_to_client.cc

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.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index 96c11e4eeddd4d9cefe79d6e011e8284ec56098e..0cc0273a06b5d441f3f12a6798552d9db11d1bbb 100644
--- a/remoting/protocol/connection_to_client.cc
+++ b/remoting/protocol/connection_to_client.cc
@@ -26,7 +26,8 @@ ConnectionToClient::ConnectionToClient(MessageLoop* message_loop,
: loop_(message_loop),
handler_(handler),
host_stub_(NULL),
- input_stub_(NULL) {
+ input_stub_(NULL),
+ sequence_number_(0) {
DCHECK(loop_);
DCHECK(handler_);
}
@@ -64,6 +65,10 @@ void ConnectionToClient::Disconnect() {
}
}
+void ConnectionToClient::UpdateSequenceNumber(int64 sequence_number) {
+ handler_->OnSequenceNumberUpdated(this, sequence_number);
+}
+
VideoStub* ConnectionToClient::video_stub() {
return video_writer_.get();
}
@@ -88,7 +93,7 @@ void ConnectionToClient::OnSessionStateChange(protocol::Session::State state) {
video_writer_->Init(session_);
dispatcher_.reset(new HostMessageDispatcher());
- dispatcher_->Initialize(session_.get(), host_stub_, input_stub_);
+ dispatcher_->Initialize(this, host_stub_, input_stub_);
}
// This method can be called from main thread so perform threading switching.

Powered by Google App Engine
This is Rietveld 408576698