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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class Observer { | 50 class Observer { |
51 public: | 51 public: |
52 virtual void OnNetworkChanged(uint32_t bitrate_bps, | 52 virtual void OnNetworkChanged(uint32_t bitrate_bps, |
53 uint8_t fraction_loss, // 0 - 255. | 53 uint8_t fraction_loss, // 0 - 255. |
54 int64_t rtt_ms, | 54 int64_t rtt_ms, |
55 int64_t probing_interval_ms) = 0; | 55 int64_t probing_interval_ms) = 0; |
56 | 56 |
57 protected: | 57 protected: |
58 virtual ~Observer() {} | 58 virtual ~Observer() {} |
59 }; | 59 }; |
60 // TODO(nisse): Consider deleting the |observer| argument to constructors. | 60 // TODO(nisse): Consider deleting the |observer| argument to constructors |
| 61 // once CongestionController is deleted. |
61 SendSideCongestionController(const Clock* clock, | 62 SendSideCongestionController(const Clock* clock, |
62 Observer* observer, | 63 Observer* observer, |
63 RtcEventLog* event_log, | 64 RtcEventLog* event_log, |
64 PacketRouter* packet_router); | 65 PacketRouter* packet_router); |
65 SendSideCongestionController(const Clock* clock, | 66 SendSideCongestionController(const Clock* clock, |
66 Observer* observer, | 67 Observer* observer, |
67 RtcEventLog* event_log, | 68 RtcEventLog* event_log, |
68 std::unique_ptr<PacedSender> pacer); | 69 std::unique_ptr<PacedSender> pacer); |
69 virtual ~SendSideCongestionController(); | 70 virtual ~SendSideCongestionController(); |
70 | 71 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |