| 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.
|
|
|