| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual int64_t GetPacerQueuingDelayMs() const; | 51 virtual int64_t GetPacerQueuingDelayMs() const; |
| 52 virtual PacedSender* pacer() { return pacer_.get(); } | 52 virtual PacedSender* pacer() { return pacer_.get(); } |
| 53 virtual PacketRouter* packet_router() { return &packet_router_; } | 53 virtual PacketRouter* packet_router() { return &packet_router_; } |
| 54 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); | 54 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); |
| 55 | 55 |
| 56 virtual void UpdatePacerBitrate(int bitrate_kbps, | 56 virtual void UpdatePacerBitrate(int bitrate_kbps, |
| 57 int max_bitrate_kbps, | 57 int max_bitrate_kbps, |
| 58 int min_bitrate_kbps); | 58 int min_bitrate_kbps); |
| 59 | 59 |
| 60 virtual void OnSentPacket(const rtc::SentPacket& sent_packet); | 60 virtual void OnSentPacket(const rtc::SentPacket& sent_packet); |
| 61 virtual void ResetBweBitrates(int target_bitrate_bps); |
| 61 | 62 |
| 62 // Implements CallStatsObserver. | 63 // Implements CallStatsObserver. |
| 63 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 64 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
| 64 | 65 |
| 65 // Implements Module. | 66 // Implements Module. |
| 66 int64_t TimeUntilNextProcess() override; | 67 int64_t TimeUntilNextProcess() override; |
| 67 void Process() override; | 68 void Process() override; |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 Clock* const clock_; | 71 Clock* const clock_; |
| 71 const rtc::scoped_ptr<PacedSender> pacer_; | 72 const rtc::scoped_ptr<PacedSender> pacer_; |
| 72 const rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; | 73 const rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; |
| 73 const rtc::scoped_ptr<BitrateController> bitrate_controller_; | 74 const rtc::scoped_ptr<BitrateController> bitrate_controller_; |
| 74 PacketRouter packet_router_; | 75 PacketRouter packet_router_; |
| 75 RemoteEstimatorProxy remote_estimator_proxy_; | 76 RemoteEstimatorProxy remote_estimator_proxy_; |
| 76 TransportFeedbackAdapter transport_feedback_adapter_; | 77 TransportFeedbackAdapter transport_feedback_adapter_; |
| 77 int min_bitrate_bps_; | 78 int min_bitrate_bps_; |
| 78 | 79 |
| 79 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); | 80 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace webrtc | 83 } // namespace webrtc |
| 83 | 84 |
| 84 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 85 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
| OLD | NEW |