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 |
11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
13 | 13 |
14 #include "webrtc/base/scoped_ptr.h" | 14 #include "webrtc/base/scoped_ptr.h" |
15 #include "webrtc/base/thread_checker.h" | |
16 #include "webrtc/modules/include/module.h" | 15 #include "webrtc/modules/include/module.h" |
17 #include "webrtc/modules/include/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
18 #include "webrtc/modules/pacing/packet_router.h" | 17 #include "webrtc/modules/pacing/packet_router.h" |
19 #include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h" | 18 #include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h" |
20 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" | 19 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" |
21 #include "webrtc/stream.h" | 20 #include "webrtc/stream.h" |
22 | 21 |
23 namespace rtc { | 22 namespace rtc { |
24 struct SentPacket; | 23 struct SentPacket; |
25 } | 24 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 61 |
63 // Implements CallStatsObserver. | 62 // Implements CallStatsObserver. |
64 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 63 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
65 | 64 |
66 // Implements Module. | 65 // Implements Module. |
67 int64_t TimeUntilNextProcess() override; | 66 int64_t TimeUntilNextProcess() override; |
68 void Process() override; | 67 void Process() override; |
69 | 68 |
70 private: | 69 private: |
71 Clock* const clock_; | 70 Clock* const clock_; |
72 rtc::ThreadChecker config_thread_checker_; | |
73 const rtc::scoped_ptr<PacedSender> pacer_; | 71 const rtc::scoped_ptr<PacedSender> pacer_; |
74 const rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; | 72 const rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; |
75 const rtc::scoped_ptr<BitrateController> bitrate_controller_; | 73 const rtc::scoped_ptr<BitrateController> bitrate_controller_; |
76 PacketRouter packet_router_; | 74 PacketRouter packet_router_; |
77 RemoteEstimatorProxy remote_estimator_proxy_; | 75 RemoteEstimatorProxy remote_estimator_proxy_; |
78 TransportFeedbackAdapter transport_feedback_adapter_; | 76 TransportFeedbackAdapter transport_feedback_adapter_; |
79 int min_bitrate_bps_; | 77 int min_bitrate_bps_; |
80 | 78 |
81 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); | 79 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); |
82 }; | 80 }; |
83 | 81 |
84 } // namespace webrtc | 82 } // namespace webrtc |
85 | 83 |
86 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ | 84 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ |
OLD | NEW |