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

Side by Side Diff: remoting/protocol/connection_to_client.cc

Issue 850983002: Implement video frame acknowledgements in the chromoting protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/connection_to_client.h" 5 #include "remoting/protocol/connection_to_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // This should trigger OnConnectionClosed() event and this object 48 // This should trigger OnConnectionClosed() event and this object
49 // may be destroyed as the result. 49 // may be destroyed as the result.
50 session_->Close(); 50 session_->Close();
51 } 51 }
52 52
53 void ConnectionToClient::OnEventTimestamp(int64 sequence_number) { 53 void ConnectionToClient::OnEventTimestamp(int64 sequence_number) {
54 DCHECK(CalledOnValidThread()); 54 DCHECK(CalledOnValidThread());
55 handler_->OnEventTimestamp(this, sequence_number); 55 handler_->OnEventTimestamp(this, sequence_number);
56 } 56 }
57 57
58 VideoStub* ConnectionToClient::video_stub() { 58 VideoSender* ConnectionToClient::video_sender() {
59 DCHECK(CalledOnValidThread()); 59 DCHECK(CalledOnValidThread());
60 return video_dispatcher_.get(); 60 return video_dispatcher_.get();
61 } 61 }
62 62
63 AudioStub* ConnectionToClient::audio_stub() { 63 AudioStub* ConnectionToClient::audio_stub() {
64 DCHECK(CalledOnValidThread()); 64 DCHECK(CalledOnValidThread());
65 return audio_writer_.get(); 65 return audio_writer_.get();
66 } 66 }
67 67
68 // Return pointer to ClientStub. 68 // Return pointer to ClientStub.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 void ConnectionToClient::CloseChannels() { 203 void ConnectionToClient::CloseChannels() {
204 control_dispatcher_.reset(); 204 control_dispatcher_.reset();
205 event_dispatcher_.reset(); 205 event_dispatcher_.reset();
206 video_dispatcher_.reset(); 206 video_dispatcher_.reset();
207 audio_writer_.reset(); 207 audio_writer_.reset();
208 } 208 }
209 209
210 } // namespace protocol 210 } // namespace protocol
211 } // namespace remoting 211 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698