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

Side by Side Diff: webrtc/voice_engine/channel_proxy.cc

Issue 1608563005: Enable transport seq num extension on receive channel to suppress log warning. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments addressed. Created 4 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
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int error = channel()->SetSendAbsoluteSenderTimeStatus(enable, id); 50 int error = channel()->SetSendAbsoluteSenderTimeStatus(enable, id);
51 RTC_DCHECK_EQ(0, error); 51 RTC_DCHECK_EQ(0, error);
52 } 52 }
53 53
54 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { 54 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) {
55 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 55 RTC_DCHECK(thread_checker_.CalledOnValidThread());
56 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); 56 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id);
57 RTC_DCHECK_EQ(0, error); 57 RTC_DCHECK_EQ(0, error);
58 } 58 }
59 59
60 void ChannelProxy::EnableSendTransportSequenceNumber(int id) {
61 RTC_DCHECK(thread_checker_.CalledOnValidThread());
62 channel()->EnableSendTransportSequenceNumber(id);
63 }
64
65 void ChannelProxy::SetReceiveAbsoluteSenderTimeStatus(bool enable, int id) { 60 void ChannelProxy::SetReceiveAbsoluteSenderTimeStatus(bool enable, int id) {
66 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 61 RTC_DCHECK(thread_checker_.CalledOnValidThread());
67 int error = channel()->SetReceiveAbsoluteSenderTimeStatus(enable, id); 62 int error = channel()->SetReceiveAbsoluteSenderTimeStatus(enable, id);
68 RTC_DCHECK_EQ(0, error); 63 RTC_DCHECK_EQ(0, error);
69 } 64 }
70 65
71 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) { 66 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) {
72 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 67 RTC_DCHECK(thread_checker_.CalledOnValidThread());
73 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id); 68 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id);
74 RTC_DCHECK_EQ(0, error); 69 RTC_DCHECK_EQ(0, error);
75 } 70 }
76 71
72 void ChannelProxy::EnableSendTransportSequenceNumber(int id) {
73 RTC_DCHECK(thread_checker_.CalledOnValidThread());
74 channel()->EnableSendTransportSequenceNumber(id);
75 }
76
77 void ChannelProxy::EnableReceiveTransportSequenceNumber(int id) {
78 RTC_DCHECK(thread_checker_.CalledOnValidThread());
79 channel()->EnableReceiveTransportSequenceNumber(id);
80 }
81
77 void ChannelProxy::SetCongestionControlObjects( 82 void ChannelProxy::SetCongestionControlObjects(
78 RtpPacketSender* rtp_packet_sender, 83 RtpPacketSender* rtp_packet_sender,
79 TransportFeedbackObserver* transport_feedback_observer, 84 TransportFeedbackObserver* transport_feedback_observer,
80 PacketRouter* packet_router) { 85 PacketRouter* packet_router) {
81 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 86 RTC_DCHECK(thread_checker_.CalledOnValidThread());
82 channel()->SetCongestionControlObjects( 87 channel()->SetCongestionControlObjects(
83 rtp_packet_sender, transport_feedback_observer, packet_router); 88 rtp_packet_sender, transport_feedback_observer, packet_router);
84 } 89 }
85 90
86 CallStatistics ChannelProxy::GetRTCPStatistics() const { 91 CallStatistics ChannelProxy::GetRTCPStatistics() const {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 channel()->SetSink(std::move(sink)); 149 channel()->SetSink(std::move(sink));
145 } 150 }
146 151
147 Channel* ChannelProxy::channel() const { 152 Channel* ChannelProxy::channel() const {
148 RTC_DCHECK(channel_owner_.channel()); 153 RTC_DCHECK(channel_owner_.channel());
149 return channel_owner_.channel(); 154 return channel_owner_.channel();
150 } 155 }
151 156
152 } // namespace voe 157 } // namespace voe
153 } // namespace webrtc 158 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698