Index: webrtc/modules/congestion_controller/include/send_side_congestion_controller.h |
diff --git a/webrtc/modules/congestion_controller/include/send_side_congestion_controller.h b/webrtc/modules/congestion_controller/include/send_side_congestion_controller.h |
index 6bebf238ff9755d653aed95927bc6311076b2d16..68213507a6c1d8308626d38cbd29a8dfaa5abf8a 100644 |
--- a/webrtc/modules/congestion_controller/include/send_side_congestion_controller.h |
+++ b/webrtc/modules/congestion_controller/include/send_side_congestion_controller.h |
@@ -136,6 +136,7 @@ class SendSideCongestionController : public CallStatsObserver, |
bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, |
uint8_t fraction_loss, |
int64_t rtt); |
+ void LimitOutstandingBytes(size_t num_outstanding_bytes); |
const Clock* const clock_; |
rtc::CriticalSection observer_lock_; |
Observer* observer_ GUARDED_BY(observer_lock_); |
@@ -151,9 +152,15 @@ class SendSideCongestionController : public CallStatsObserver, |
uint8_t last_reported_fraction_loss_ GUARDED_BY(network_state_lock_); |
int64_t last_reported_rtt_ GUARDED_BY(network_state_lock_); |
NetworkState network_state_ GUARDED_BY(network_state_lock_); |
+ bool pause_pacer_ GUARDED_BY(network_state_lock_); |
+ // Duplicate the pacer paused state to avoid grabbing a lock when |
+ // pausing the pacer. This can be removed when we move this class |
+ // over to the task queue. |
+ bool pacer_paused_; |
rtc::CriticalSection bwe_lock_; |
int min_bitrate_bps_ GUARDED_BY(bwe_lock_); |
std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(bwe_lock_); |
+ const bool in_cwnd_experiment_; |
bool was_in_alr_; |
rtc::RaceChecker worker_race_; |