| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // Implements CallStatsObserver. | 115 // Implements CallStatsObserver. |
| 116 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 116 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
| 117 | 117 |
| 118 // Implements Module. | 118 // Implements Module. |
| 119 int64_t TimeUntilNextProcess() override; | 119 int64_t TimeUntilNextProcess() override; |
| 120 void Process() override; | 120 void Process() override; |
| 121 | 121 |
| 122 // Implements TransportFeedbackObserver. | 122 // Implements TransportFeedbackObserver. |
| 123 void AddPacket(uint32_t ssrc, | 123 void AddPacket(uint32_t ssrc, |
| 124 uint16_t sequence_number, | 124 uint16_t sequence_number, |
| 125 size_t length, | 125 size_t payload_size, |
| 126 size_t rtp_headers_size, |
| 126 const PacedPacketInfo& pacing_info) override; | 127 const PacedPacketInfo& pacing_info) override; |
| 127 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; | 128 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; |
| 128 std::vector<PacketFeedback> GetTransportFeedbackVector() const override; | 129 std::vector<PacketFeedback> GetTransportFeedbackVector() const override; |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 void MaybeTriggerOnNetworkChanged(); | 132 void MaybeTriggerOnNetworkChanged(); |
| 132 | 133 |
| 133 bool IsSendQueueFull() const; | 134 bool IsSendQueueFull() const; |
| 134 bool IsNetworkDown() const; | 135 bool IsNetworkDown() const; |
| 135 bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, | 136 bool HasNetworkParametersToReportChanged(uint32_t bitrate_bps, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 154 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(bwe_lock_); | 155 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(bwe_lock_); |
| 155 | 156 |
| 156 rtc::ThreadChecker worker_thread_checker_; | 157 rtc::ThreadChecker worker_thread_checker_; |
| 157 | 158 |
| 158 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendSideCongestionController); | 159 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendSideCongestionController); |
| 159 }; | 160 }; |
| 160 | 161 |
| 161 } // namespace webrtc | 162 } // namespace webrtc |
| 162 | 163 |
| 163 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_SEND_SIDE_CONGESTION_CON
TROLLER_H_ | 164 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_SEND_SIDE_CONGESTION_CON
TROLLER_H_ |
| OLD | NEW |