| 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 10 matching lines...) Expand all Loading... |
| 21 #include "webrtc/modules/pacing/paced_sender.h" | 21 #include "webrtc/modules/pacing/paced_sender.h" |
| 22 #include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h" |
| 23 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" |
| 24 | 24 |
| 25 namespace rtc { | 25 namespace rtc { |
| 26 struct SentPacket; | 26 struct SentPacket; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace webrtc { | 29 namespace webrtc { |
| 30 | 30 |
| 31 class AlrDetector; |
| 31 class BitrateController; | 32 class BitrateController; |
| 32 class Clock; | 33 class Clock; |
| 33 class ProbeController; | 34 class ProbeController; |
| 34 class ProcessThread; | 35 class ProcessThread; |
| 35 class RateLimiter; | 36 class RateLimiter; |
| 36 class RemoteBitrateEstimator; | 37 class RemoteBitrateEstimator; |
| 37 class RemoteBitrateObserver; | 38 class RemoteBitrateObserver; |
| 38 class RtcEventLog; | 39 class RtcEventLog; |
| 39 class TransportFeedbackObserver; | 40 class TransportFeedbackObserver; |
| 40 | 41 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void MaybeTriggerOnNetworkChanged(); | 112 void MaybeTriggerOnNetworkChanged(); |
| 112 | 113 |
| 113 bool IsSendQueueFull() const; | 114 bool IsSendQueueFull() const; |
| 114 bool IsNetworkDown() const; | 115 bool IsNetworkDown() const; |
| 115 bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, | 116 bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, |
| 116 uint8_t fraction_loss, | 117 uint8_t fraction_loss, |
| 117 int64_t rtt); | 118 int64_t rtt); |
| 118 Clock* const clock_; | 119 Clock* const clock_; |
| 119 Observer* const observer_; | 120 Observer* const observer_; |
| 120 const std::unique_ptr<PacketRouter> packet_router_; | 121 const std::unique_ptr<PacketRouter> packet_router_; |
| 122 const std::unique_ptr<AlrDetector> alr_detector_; |
| 121 const std::unique_ptr<PacedSender> pacer_; | 123 const std::unique_ptr<PacedSender> pacer_; |
| 122 const std::unique_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; | 124 const std::unique_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; |
| 123 const std::unique_ptr<BitrateController> bitrate_controller_; | 125 const std::unique_ptr<BitrateController> bitrate_controller_; |
| 124 const std::unique_ptr<ProbeController> probe_controller_; | 126 const std::unique_ptr<ProbeController> probe_controller_; |
| 125 const std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 127 const std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
| 126 RemoteEstimatorProxy remote_estimator_proxy_; | 128 RemoteEstimatorProxy remote_estimator_proxy_; |
| 127 TransportFeedbackAdapter transport_feedback_adapter_; | 129 TransportFeedbackAdapter transport_feedback_adapter_; |
| 128 int min_bitrate_bps_; | 130 int min_bitrate_bps_; |
| 129 int max_bitrate_bps_; | 131 int max_bitrate_bps_; |
| 130 rtc::CriticalSection critsect_; | 132 rtc::CriticalSection critsect_; |
| 131 uint32_t last_reported_bitrate_bps_ GUARDED_BY(critsect_); | 133 uint32_t last_reported_bitrate_bps_ GUARDED_BY(critsect_); |
| 132 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); | 134 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); |
| 133 int64_t last_reported_rtt_ GUARDED_BY(critsect_); | 135 int64_t last_reported_rtt_ GUARDED_BY(critsect_); |
| 134 NetworkState network_state_ GUARDED_BY(critsect_); | 136 NetworkState network_state_ GUARDED_BY(critsect_); |
| 135 | 137 |
| 136 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); | 138 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 } // namespace webrtc | 141 } // namespace webrtc |
| 140 | 142 |
| 141 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 143 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
| OLD | NEW |