OLD | NEW |
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 }; | 179 }; |
180 | 180 |
181 void LogProbeResultFailure(int id, | 181 void LogProbeResultFailure(int id, |
182 ProbeFailureReason failure_reason) override { | 182 ProbeFailureReason failure_reason) override { |
183 rtc::CritScope lock(&crit_); | 183 rtc::CritScope lock(&crit_); |
184 if (event_log_) { | 184 if (event_log_) { |
185 event_log_->LogProbeResultFailure(id, failure_reason); | 185 event_log_->LogProbeResultFailure(id, failure_reason); |
186 } | 186 } |
187 }; | 187 }; |
188 | 188 |
| 189 void LogAckedBitrate(uint32_t bitrate_bps) override { |
| 190 rtc::CritScope lock(&crit_); |
| 191 if (event_log_) { |
| 192 event_log_->LogAckedBitrate(bitrate_bps); |
| 193 } |
| 194 }; |
| 195 |
| 196 void LogAlrState(bool in_alr, uint32_t usage_bps) override { |
| 197 rtc::CritScope lock(&crit_); |
| 198 if (event_log_) { |
| 199 event_log_->LogAlrState(in_alr, usage_bps); |
| 200 } |
| 201 }; |
| 202 |
| 203 void LogPacketQueueTime(uint32_t ssrc, int64_t time_ms) override { |
| 204 rtc::CritScope lock(&crit_); |
| 205 if (event_log_) { |
| 206 event_log_->LogPacketQueueTime(ssrc, time_ms); |
| 207 } |
| 208 }; |
| 209 |
189 void SetEventLog(RtcEventLog* event_log) { | 210 void SetEventLog(RtcEventLog* event_log) { |
190 rtc::CritScope lock(&crit_); | 211 rtc::CritScope lock(&crit_); |
191 event_log_ = event_log; | 212 event_log_ = event_log; |
192 } | 213 } |
193 | 214 |
194 private: | 215 private: |
195 rtc::CriticalSection crit_; | 216 rtc::CriticalSection crit_; |
196 RtcEventLog* event_log_ GUARDED_BY(crit_); | 217 RtcEventLog* event_log_ GUARDED_BY(crit_); |
197 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); | 218 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); |
198 }; | 219 }; |
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3165 int64_t min_rtt = 0; | 3186 int64_t min_rtt = 0; |
3166 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3187 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
3167 0) { | 3188 0) { |
3168 return 0; | 3189 return 0; |
3169 } | 3190 } |
3170 return rtt; | 3191 return rtt; |
3171 } | 3192 } |
3172 | 3193 |
3173 } // namespace voe | 3194 } // namespace voe |
3174 } // namespace webrtc | 3195 } // namespace webrtc |
OLD | NEW |