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

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

Issue 2855143002: Removed RtcEventLog deps to call:call_interfaces. (Closed)
Patch Set: Made GetSend/ReceiveConfig private. Created 3 years, 6 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/tools/event_log_visualizer/analyzer.cc ('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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 void LogAudioSendStreamConfig( 95 void LogAudioSendStreamConfig(
96 const webrtc::rtclog::StreamConfig& config) override { 96 const webrtc::rtclog::StreamConfig& config) override {
97 rtc::CritScope lock(&crit_); 97 rtc::CritScope lock(&crit_);
98 if (event_log_) { 98 if (event_log_) {
99 event_log_->LogAudioSendStreamConfig(config); 99 event_log_->LogAudioSendStreamConfig(config);
100 } 100 }
101 } 101 }
102 102
103 void LogRtpHeader(webrtc::PacketDirection direction, 103 void LogRtpHeader(webrtc::PacketDirection direction,
104 webrtc::MediaType media_type,
105 const uint8_t* header, 104 const uint8_t* header,
106 size_t packet_length) override { 105 size_t packet_length) override {
107 LogRtpHeader(direction, media_type, header, packet_length, 106 LogRtpHeader(direction, header, packet_length, PacedPacketInfo::kNotAProbe);
108 PacedPacketInfo::kNotAProbe);
109 } 107 }
110 108
111 void LogRtpHeader(webrtc::PacketDirection direction, 109 void LogRtpHeader(webrtc::PacketDirection direction,
112 webrtc::MediaType media_type,
113 const uint8_t* header, 110 const uint8_t* header,
114 size_t packet_length, 111 size_t packet_length,
115 int probe_cluster_id) override { 112 int probe_cluster_id) override {
116 rtc::CritScope lock(&crit_); 113 rtc::CritScope lock(&crit_);
117 if (event_log_) { 114 if (event_log_) {
118 event_log_->LogRtpHeader(direction, media_type, header, packet_length, 115 event_log_->LogRtpHeader(direction, header, packet_length,
119 probe_cluster_id); 116 probe_cluster_id);
120 } 117 }
121 } 118 }
122 119
123 void LogRtcpPacket(webrtc::PacketDirection direction, 120 void LogRtcpPacket(webrtc::PacketDirection direction,
124 webrtc::MediaType media_type,
125 const uint8_t* packet, 121 const uint8_t* packet,
126 size_t length) override { 122 size_t length) override {
127 rtc::CritScope lock(&crit_); 123 rtc::CritScope lock(&crit_);
128 if (event_log_) { 124 if (event_log_) {
129 event_log_->LogRtcpPacket(direction, media_type, packet, length); 125 event_log_->LogRtcpPacket(direction, packet, length);
130 } 126 }
131 } 127 }
132 128
133 void LogAudioPlayout(uint32_t ssrc) override { 129 void LogAudioPlayout(uint32_t ssrc) override {
134 rtc::CritScope lock(&crit_); 130 rtc::CritScope lock(&crit_);
135 if (event_log_) { 131 if (event_log_) {
136 event_log_->LogAudioPlayout(ssrc); 132 event_log_->LogAudioPlayout(ssrc);
137 } 133 }
138 } 134 }
139 135
(...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 int64_t min_rtt = 0; 3129 int64_t min_rtt = 0;
3134 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3130 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3135 0) { 3131 0) {
3136 return 0; 3132 return 0;
3137 } 3133 }
3138 return rtt; 3134 return rtt;
3139 } 3135 }
3140 3136
3141 } // namespace voe 3137 } // namespace voe
3142 } // namespace webrtc 3138 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698