Chromium Code Reviews| 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 18 matching lines...) Expand all Loading... | |
| 29 | 29 |
| 30 namespace webrtc { | 30 namespace webrtc { |
| 31 | 31 |
| 32 class BitrateController; | 32 class BitrateController; |
| 33 class Clock; | 33 class Clock; |
| 34 class ProbeController; | 34 class ProbeController; |
| 35 class RateLimiter; | 35 class RateLimiter; |
| 36 class RemoteBitrateEstimator; | 36 class RemoteBitrateEstimator; |
| 37 class RemoteBitrateObserver; | 37 class RemoteBitrateObserver; |
| 38 class RtcEventLog; | 38 class RtcEventLog; |
| 39 class RtpHeaderExtensionMap; | |
| 39 class TransportFeedbackObserver; | 40 class TransportFeedbackObserver; |
| 40 | 41 |
| 41 class CongestionController : public CallStatsObserver, public Module { | 42 class CongestionController : public CallStatsObserver, public Module { |
| 42 public: | 43 public: |
| 43 // Observer class for bitrate changes announced due to change in bandwidth | 44 // Observer class for bitrate changes announced due to change in bandwidth |
| 44 // estimate or due to that the send pacer is full. Fraction loss and rtt is | 45 // estimate or due to that the send pacer is full. Fraction loss and rtt is |
| 45 // also part of this callback to allow the observer to optimize its settings | 46 // also part of this callback to allow the observer to optimize its settings |
| 46 // for different types of network environments. The bitrate does not include | 47 // for different types of network environments. The bitrate does not include |
| 47 // packet headers and is measured in bits per second. | 48 // packet headers and is measured in bits per second. |
| 48 class Observer { | 49 class Observer { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( | 94 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( |
| 94 bool send_side_bwe); | 95 bool send_side_bwe); |
| 95 virtual int64_t GetPacerQueuingDelayMs() const; | 96 virtual int64_t GetPacerQueuingDelayMs() const; |
| 96 virtual PacedSender* pacer() { return pacer_.get(); } | 97 virtual PacedSender* pacer() { return pacer_.get(); } |
| 97 // TODO(nisse): Deprecated, but still used by downstream projects. | 98 // TODO(nisse): Deprecated, but still used by downstream projects. |
| 98 virtual PacketRouter* packet_router() { return packet_router_; } | 99 virtual PacketRouter* packet_router() { return packet_router_; } |
| 99 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); | 100 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); |
| 100 RateLimiter* GetRetransmissionRateLimiter(); | 101 RateLimiter* GetRetransmissionRateLimiter(); |
| 101 void EnablePeriodicAlrProbing(bool enable); | 102 void EnablePeriodicAlrProbing(bool enable); |
| 102 | 103 |
| 104 // Are the necessary RTCP and RTP header extensions enabled for send-side BWE? | |
| 105 static bool UseSendSideBwe( | |
| 106 bool transport_cc, | |
|
danilchap
2016/12/06 15:04:30
what does transport_cc mean?
brandtr
2016/12/12 13:51:07
Before this comment, I actually didn't know. Now I
| |
| 107 const RtpHeaderExtensionMap& rtp_header_extensions); | |
| 108 | |
| 103 // SetAllocatedSendBitrateLimits sets bitrates limits imposed by send codec | 109 // SetAllocatedSendBitrateLimits sets bitrates limits imposed by send codec |
| 104 // settings. | 110 // settings. |
| 105 // |min_send_bitrate_bps| is the total minimum send bitrate required by all | 111 // |min_send_bitrate_bps| is the total minimum send bitrate required by all |
| 106 // sending streams. This is the minimum bitrate the PacedSender will use. | 112 // sending streams. This is the minimum bitrate the PacedSender will use. |
| 107 // Note that CongestionController::OnNetworkChanged can still be called with | 113 // Note that CongestionController::OnNetworkChanged can still be called with |
| 108 // a lower bitrate estimate. | 114 // a lower bitrate estimate. |
| 109 // |max_padding_bitrate_bps| is the max bitrate the send streams request for | 115 // |max_padding_bitrate_bps| is the max bitrate the send streams request for |
| 110 // padding. This can be higher than the current network estimate and tells | 116 // padding. This can be higher than the current network estimate and tells |
| 111 // the PacedSender how much it should max pad unless there is real packets to | 117 // the PacedSender how much it should max pad unless there is real packets to |
| 112 // send. | 118 // send. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); | 156 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); |
| 151 int64_t last_reported_rtt_ GUARDED_BY(critsect_); | 157 int64_t last_reported_rtt_ GUARDED_BY(critsect_); |
| 152 NetworkState network_state_ GUARDED_BY(critsect_); | 158 NetworkState network_state_ GUARDED_BY(critsect_); |
| 153 | 159 |
| 154 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); | 160 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); |
| 155 }; | 161 }; |
| 156 | 162 |
| 157 } // namespace webrtc | 163 } // namespace webrtc |
| 158 | 164 |
| 159 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 165 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
| OLD | NEW |