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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 void MaybeTriggerOnNetworkChanged(); | 119 void MaybeTriggerOnNetworkChanged(); |
120 | 120 |
121 bool IsSendQueueFull() const; | 121 bool IsSendQueueFull() const; |
122 bool IsNetworkDown() const; | 122 bool IsNetworkDown() const; |
123 bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, | 123 bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, |
124 uint8_t fraction_loss, | 124 uint8_t fraction_loss, |
125 int64_t rtt); | 125 int64_t rtt); |
126 void LimitOutstandingBytes(size_t num_outstanding_bytes); | 126 void LimitOutstandingBytes(size_t num_outstanding_bytes); |
127 const Clock* const clock_; | 127 const Clock* const clock_; |
128 rtc::CriticalSection observer_lock_; | 128 rtc::CriticalSection observer_lock_; |
129 Observer* observer_ GUARDED_BY(observer_lock_); | 129 Observer* observer_ RTC_GUARDED_BY(observer_lock_); |
130 RtcEventLog* const event_log_; | 130 RtcEventLog* const event_log_; |
131 std::unique_ptr<PacedSender> owned_pacer_; | 131 std::unique_ptr<PacedSender> owned_pacer_; |
132 PacedSender* pacer_; | 132 PacedSender* pacer_; |
133 const std::unique_ptr<BitrateController> bitrate_controller_; | 133 const std::unique_ptr<BitrateController> bitrate_controller_; |
134 std::unique_ptr<AcknowledgedBitrateEstimator> acknowledged_bitrate_estimator_; | 134 std::unique_ptr<AcknowledgedBitrateEstimator> acknowledged_bitrate_estimator_; |
135 const std::unique_ptr<ProbeController> probe_controller_; | 135 const std::unique_ptr<ProbeController> probe_controller_; |
136 const std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 136 const std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
137 TransportFeedbackAdapter transport_feedback_adapter_; | 137 TransportFeedbackAdapter transport_feedback_adapter_; |
138 rtc::CriticalSection network_state_lock_; | 138 rtc::CriticalSection network_state_lock_; |
139 uint32_t last_reported_bitrate_bps_ GUARDED_BY(network_state_lock_); | 139 uint32_t last_reported_bitrate_bps_ RTC_GUARDED_BY(network_state_lock_); |
140 uint8_t last_reported_fraction_loss_ GUARDED_BY(network_state_lock_); | 140 uint8_t last_reported_fraction_loss_ RTC_GUARDED_BY(network_state_lock_); |
141 int64_t last_reported_rtt_ GUARDED_BY(network_state_lock_); | 141 int64_t last_reported_rtt_ RTC_GUARDED_BY(network_state_lock_); |
142 NetworkState network_state_ GUARDED_BY(network_state_lock_); | 142 NetworkState network_state_ RTC_GUARDED_BY(network_state_lock_); |
143 bool pause_pacer_ GUARDED_BY(network_state_lock_); | 143 bool pause_pacer_ RTC_GUARDED_BY(network_state_lock_); |
144 // Duplicate the pacer paused state to avoid grabbing a lock when | 144 // Duplicate the pacer paused state to avoid grabbing a lock when |
145 // pausing the pacer. This can be removed when we move this class | 145 // pausing the pacer. This can be removed when we move this class |
146 // over to the task queue. | 146 // over to the task queue. |
147 bool pacer_paused_; | 147 bool pacer_paused_; |
148 rtc::CriticalSection bwe_lock_; | 148 rtc::CriticalSection bwe_lock_; |
149 int min_bitrate_bps_ GUARDED_BY(bwe_lock_); | 149 int min_bitrate_bps_ RTC_GUARDED_BY(bwe_lock_); |
150 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(bwe_lock_); | 150 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ RTC_GUARDED_BY(bwe_lock_); |
151 bool in_cwnd_experiment_; | 151 bool in_cwnd_experiment_; |
152 int64_t accepted_queue_ms_; | 152 int64_t accepted_queue_ms_; |
153 bool was_in_alr_; | 153 bool was_in_alr_; |
154 | 154 |
155 rtc::RaceChecker worker_race_; | 155 rtc::RaceChecker worker_race_; |
156 | 156 |
157 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendSideCongestionController); | 157 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendSideCongestionController); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace webrtc | 160 } // namespace webrtc |
161 | 161 |
162 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_SEND_SIDE_CONGESTION_CON
TROLLER_H_ | 162 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_SEND_SIDE_CONGESTION_CON
TROLLER_H_ |
OLD | NEW |