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

Side by Side Diff: webrtc/modules/congestion_controller/congestion_controller.cc

Issue 2638083002: Attach TransportFeedbackPacketLossTracker to ANA (PLR only) (Closed)
Patch Set: Fix UT Created 3 years, 10 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 /* 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } else { 247 } else {
248 return &remote_bitrate_estimator_; 248 return &remote_bitrate_estimator_;
249 } 249 }
250 } 250 }
251 251
252 TransportFeedbackObserver* 252 TransportFeedbackObserver*
253 CongestionController::GetTransportFeedbackObserver() { 253 CongestionController::GetTransportFeedbackObserver() {
254 return &transport_feedback_adapter_; 254 return &transport_feedback_adapter_;
255 } 255 }
256 256
257 void CongestionController::RegisterTransportFeedbackAdapterObserver(
258 TransportFeedbackAdapterObserver* observer) {
259 transport_feedback_adapter_.RegisterTransportFeedbackAdapterObserver(
260 observer);
261 }
262
263 void CongestionController::DeRegisterTransportFeedbackAdapterObserver(
264 TransportFeedbackAdapterObserver* observer) {
265 transport_feedback_adapter_.DeRegisterTransportFeedbackAdapterObserver(
266 observer);
267 }
268
257 RateLimiter* CongestionController::GetRetransmissionRateLimiter() { 269 RateLimiter* CongestionController::GetRetransmissionRateLimiter() {
258 return retransmission_rate_limiter_.get(); 270 return retransmission_rate_limiter_.get();
259 } 271 }
260 272
261 void CongestionController::EnablePeriodicAlrProbing(bool enable) { 273 void CongestionController::EnablePeriodicAlrProbing(bool enable) {
262 probe_controller_->EnablePeriodicAlrProbing(enable); 274 probe_controller_->EnablePeriodicAlrProbing(enable);
263 } 275 }
264 276
265 void CongestionController::SetAllocatedSendBitrateLimits( 277 void CongestionController::SetAllocatedSendBitrateLimits(
266 int min_send_bitrate_bps, 278 int min_send_bitrate_bps,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 bool CongestionController::IsSendQueueFull() const { 381 bool CongestionController::IsSendQueueFull() const {
370 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; 382 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs;
371 } 383 }
372 384
373 bool CongestionController::IsNetworkDown() const { 385 bool CongestionController::IsNetworkDown() const {
374 rtc::CritScope cs(&critsect_); 386 rtc::CritScope cs(&critsect_);
375 return network_state_ == kNetworkDown; 387 return network_state_ == kNetworkDown;
376 } 388 }
377 389
378 } // namespace webrtc 390 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698