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

Side by Side Diff: voice_engine/channel_proxy.cc

Issue 3020473002: Remove voe::Statistics. (Closed)
Patch Set: rebase Created 3 years, 2 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
« no previous file with comments | « voice_engine/channel_proxy.h ('k') | voice_engine/shared_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) { 206 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) {
207 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 207 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
208 channel()->SetSink(std::move(sink)); 208 channel()->SetSink(std::move(sink));
209 } 209 }
210 210
211 void ChannelProxy::SetInputMute(bool muted) { 211 void ChannelProxy::SetInputMute(bool muted) {
212 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 212 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
213 channel()->SetInputMute(muted); 213 channel()->SetInputMute(muted);
214 } 214 }
215 215
216 void ChannelProxy::RegisterExternalTransport(Transport* transport) { 216 void ChannelProxy::RegisterTransport(Transport* transport) {
217 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 217 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
218 int error = channel()->RegisterExternalTransport(transport); 218 channel()->RegisterTransport(transport);
219 RTC_DCHECK_EQ(0, error);
220 }
221
222 void ChannelProxy::DeRegisterExternalTransport() {
223 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
224 channel()->DeRegisterExternalTransport();
225 } 219 }
226 220
227 void ChannelProxy::OnRtpPacket(const RtpPacketReceived& packet) { 221 void ChannelProxy::OnRtpPacket(const RtpPacketReceived& packet) {
228 // May be called on either worker thread or network thread. 222 // May be called on either worker thread or network thread.
229 channel()->OnRtpPacket(packet); 223 channel()->OnRtpPacket(packet);
230 } 224 }
231 225
232 bool ChannelProxy::ReceivedRTCPPacket(const uint8_t* packet, size_t length) { 226 bool ChannelProxy::ReceivedRTCPPacket(const uint8_t* packet, size_t length) {
233 // May be called on either worker thread or network thread. 227 // May be called on either worker thread or network thread.
234 return channel()->ReceivedRTCPPacket(packet, length) == 0; 228 return channel()->ReceivedRTCPPacket(packet, length) == 0;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 return channel()->GetSources(); 326 return channel()->GetSources();
333 } 327 }
334 328
335 Channel* ChannelProxy::channel() const { 329 Channel* ChannelProxy::channel() const {
336 RTC_DCHECK(channel_owner_.channel()); 330 RTC_DCHECK(channel_owner_.channel());
337 return channel_owner_.channel(); 331 return channel_owner_.channel();
338 } 332 }
339 333
340 } // namespace voe 334 } // namespace voe
341 } // namespace webrtc 335 } // namespace webrtc
OLDNEW
« no previous file with comments | « voice_engine/channel_proxy.h ('k') | voice_engine/shared_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698