OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_PACING_ALR_DETECTOR_H_ | 11 #ifndef WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ |
12 #define WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ | 12 #define WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ |
13 | 13 |
14 #include "webrtc/base/optional.h" | |
15 #include "webrtc/base/rate_statistics.h" | |
16 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
17 #include "webrtc/modules/pacing/paced_sender.h" | 15 #include "webrtc/modules/pacing/paced_sender.h" |
| 16 #include "webrtc/rtc_base/optional.h" |
| 17 #include "webrtc/rtc_base/rate_statistics.h" |
18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 // Application limited region detector is a class that utilizes signals of | 22 // Application limited region detector is a class that utilizes signals of |
23 // elapsed time and bytes sent to estimate whether network traffic is | 23 // elapsed time and bytes sent to estimate whether network traffic is |
24 // currently limited by the application's ability to generate traffic. | 24 // currently limited by the application's ability to generate traffic. |
25 // | 25 // |
26 // AlrDetector provides a signal that can be utilized to adjust | 26 // AlrDetector provides a signal that can be utilized to adjust |
27 // estimate bandwidth. | 27 // estimate bandwidth. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 RateStatistics rate_; | 64 RateStatistics rate_; |
65 int estimated_bitrate_bps_; | 65 int estimated_bitrate_bps_; |
66 | 66 |
67 // Non-empty in ALR state. | 67 // Non-empty in ALR state. |
68 rtc::Optional<int64_t> alr_started_time_ms_; | 68 rtc::Optional<int64_t> alr_started_time_ms_; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace webrtc | 71 } // namespace webrtc |
72 | 72 |
73 #endif // WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ | 73 #endif // WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ |
OLD | NEW |