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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 virtual void SetBweBitrates(int min_bitrate_bps, | 75 virtual void SetBweBitrates(int min_bitrate_bps, |
76 int start_bitrate_bps, | 76 int start_bitrate_bps, |
77 int max_bitrate_bps); | 77 int max_bitrate_bps); |
78 // Resets both the BWE state and the bitrate estimator. Note the first | 78 // Resets both the BWE state and the bitrate estimator. Note the first |
79 // argument is the bitrate_bps. | 79 // argument is the bitrate_bps. |
80 virtual void ResetBweAndBitrates(int bitrate_bps, | 80 virtual void ResetBweAndBitrates(int bitrate_bps, |
81 int min_bitrate_bps, | 81 int min_bitrate_bps, |
82 int max_bitrate_bps); | 82 int max_bitrate_bps); |
83 virtual void SignalNetworkState(NetworkState state); | 83 virtual void SignalNetworkState(NetworkState state); |
| 84 virtual void SetTransportOverhead(size_t transport_overhead_bytes_per_packet); |
| 85 |
84 virtual BitrateController* GetBitrateController() const; | 86 virtual BitrateController* GetBitrateController() const; |
85 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( | 87 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( |
86 bool send_side_bwe); | 88 bool send_side_bwe); |
87 virtual int64_t GetPacerQueuingDelayMs() const; | 89 virtual int64_t GetPacerQueuingDelayMs() const; |
88 // TODO(nisse): Delete this accessor function. The pacer should be | 90 // TODO(nisse): Delete this accessor function. The pacer should be |
89 // internal to the congestion controller. | 91 // internal to the congestion controller. |
90 virtual PacedSender* pacer() { return pacer_.get(); } | 92 virtual PacedSender* pacer() { return pacer_.get(); } |
91 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); | 93 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); |
92 RateLimiter* GetRetransmissionRateLimiter(); | 94 RateLimiter* GetRetransmissionRateLimiter(); |
93 void EnablePeriodicAlrProbing(bool enable); | 95 void EnablePeriodicAlrProbing(bool enable); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); | 141 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); |
140 int64_t last_reported_rtt_ GUARDED_BY(critsect_); | 142 int64_t last_reported_rtt_ GUARDED_BY(critsect_); |
141 NetworkState network_state_ GUARDED_BY(critsect_); | 143 NetworkState network_state_ GUARDED_BY(critsect_); |
142 | 144 |
143 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); | 145 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); |
144 }; | 146 }; |
145 | 147 |
146 } // namespace webrtc | 148 } // namespace webrtc |
147 | 149 |
148 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 150 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
OLD | NEW |