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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Resets both the BWE state and the bitrate estimator. Note the first | 86 // Resets both the BWE state and the bitrate estimator. Note the first |
87 // argument is the bitrate_bps. | 87 // argument is the bitrate_bps. |
88 virtual void ResetBweAndBitrates(int bitrate_bps, | 88 virtual void ResetBweAndBitrates(int bitrate_bps, |
89 int min_bitrate_bps, | 89 int min_bitrate_bps, |
90 int max_bitrate_bps); | 90 int max_bitrate_bps); |
91 virtual void SignalNetworkState(NetworkState state); | 91 virtual void SignalNetworkState(NetworkState state); |
92 virtual BitrateController* GetBitrateController() const; | 92 virtual BitrateController* GetBitrateController() const; |
93 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( | 93 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( |
94 bool send_side_bwe); | 94 bool send_side_bwe); |
95 virtual int64_t GetPacerQueuingDelayMs() const; | 95 virtual int64_t GetPacerQueuingDelayMs() const; |
| 96 // TODO(nisse): Delete this accessor function. The pacer should be |
| 97 // internal to the congestion controller. |
96 virtual PacedSender* pacer() { return pacer_.get(); } | 98 virtual PacedSender* pacer() { return pacer_.get(); } |
97 // TODO(nisse): Deprecated, but still used by downstream projects. | 99 // TODO(nisse): Deprecated, but still used by downstream projects. |
98 virtual PacketRouter* packet_router() { return packet_router_; } | 100 virtual PacketRouter* packet_router() { return packet_router_; } |
99 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); | 101 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); |
100 RateLimiter* GetRetransmissionRateLimiter(); | 102 RateLimiter* GetRetransmissionRateLimiter(); |
101 void EnablePeriodicAlrProbing(bool enable); | 103 void EnablePeriodicAlrProbing(bool enable); |
102 | 104 |
103 // SetAllocatedSendBitrateLimits sets bitrates limits imposed by send codec | 105 // SetAllocatedSendBitrateLimits sets bitrates limits imposed by send codec |
104 // settings. | 106 // settings. |
105 // |min_send_bitrate_bps| is the total minimum send bitrate required by all | 107 // |min_send_bitrate_bps| is the total minimum send bitrate required by all |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); | 152 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); |
151 int64_t last_reported_rtt_ GUARDED_BY(critsect_); | 153 int64_t last_reported_rtt_ GUARDED_BY(critsect_); |
152 NetworkState network_state_ GUARDED_BY(critsect_); | 154 NetworkState network_state_ GUARDED_BY(critsect_); |
153 | 155 |
154 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); | 156 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); |
155 }; | 157 }; |
156 | 158 |
157 } // namespace webrtc | 159 } // namespace webrtc |
158 | 160 |
159 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 161 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
OLD | NEW |