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