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

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

Issue 2858813002: [Chromoting] Use ProcessStatsSender in host process
Patch Set: Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ice_connection_to_client.h" 5 #include "remoting/protocol/ice_connection_to_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 new AudioPump(audio_task_runner_, std::move(audio_source), 118 new AudioPump(audio_task_runner_, std::move(audio_source),
119 std::move(audio_encoder), audio_writer_.get())); 119 std::move(audio_encoder), audio_writer_.get()));
120 } 120 }
121 121
122 // Return pointer to ClientStub. 122 // Return pointer to ClientStub.
123 ClientStub* IceConnectionToClient::client_stub() { 123 ClientStub* IceConnectionToClient::client_stub() {
124 DCHECK(thread_checker_.CalledOnValidThread()); 124 DCHECK(thread_checker_.CalledOnValidThread());
125 return control_dispatcher_.get(); 125 return control_dispatcher_.get();
126 } 126 }
127 127
128 // Not implemented.
129 ProcessStatsStub* IceConnectionToClient::stats_stub() {
130 return nullptr;
131 }
132
128 void IceConnectionToClient::set_clipboard_stub( 133 void IceConnectionToClient::set_clipboard_stub(
129 protocol::ClipboardStub* clipboard_stub) { 134 protocol::ClipboardStub* clipboard_stub) {
130 DCHECK(thread_checker_.CalledOnValidThread()); 135 DCHECK(thread_checker_.CalledOnValidThread());
131 control_dispatcher_->set_clipboard_stub(clipboard_stub); 136 control_dispatcher_->set_clipboard_stub(clipboard_stub);
132 } 137 }
133 138
134 void IceConnectionToClient::set_host_stub(protocol::HostStub* host_stub) { 139 void IceConnectionToClient::set_host_stub(protocol::HostStub* host_stub) {
135 DCHECK(thread_checker_.CalledOnValidThread()); 140 DCHECK(thread_checker_.CalledOnValidThread());
136 control_dispatcher_->set_host_stub(host_stub); 141 control_dispatcher_->set_host_stub(host_stub);
137 } 142 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 229
225 void IceConnectionToClient::CloseChannels() { 230 void IceConnectionToClient::CloseChannels() {
226 control_dispatcher_.reset(); 231 control_dispatcher_.reset();
227 event_dispatcher_.reset(); 232 event_dispatcher_.reset();
228 video_dispatcher_.reset(); 233 video_dispatcher_.reset();
229 audio_writer_.reset(); 234 audio_writer_.reset();
230 } 235 }
231 236
232 } // namespace protocol 237 } // namespace protocol
233 } // namespace remoting 238 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/ice_connection_to_client.h ('k') | remoting/protocol/process_stats_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698