| 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/api/optional.h" |
| 14 #include "webrtc/common_types.h" | 15 #include "webrtc/common_types.h" |
| 15 #include "webrtc/modules/pacing/interval_budget.h" | 16 #include "webrtc/modules/pacing/interval_budget.h" |
| 16 #include "webrtc/modules/pacing/paced_sender.h" | 17 #include "webrtc/modules/pacing/paced_sender.h" |
| 17 #include "webrtc/rtc_base/optional.h" | |
| 18 #include "webrtc/rtc_base/rate_statistics.h" | 18 #include "webrtc/rtc_base/rate_statistics.h" |
| 19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 // Application limited region detector is a class that utilizes signals of | 23 // Application limited region detector is a class that utilizes signals of |
| 24 // elapsed time and bytes sent to estimate whether network traffic is | 24 // elapsed time and bytes sent to estimate whether network traffic is |
| 25 // currently limited by the application's ability to generate traffic. | 25 // currently limited by the application's ability to generate traffic. |
| 26 // | 26 // |
| 27 // AlrDetector provides a signal that can be utilized to adjust | 27 // AlrDetector provides a signal that can be utilized to adjust |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 int alr_start_budget_level_percent_; | 74 int alr_start_budget_level_percent_; |
| 75 int alr_stop_budget_level_percent_; | 75 int alr_stop_budget_level_percent_; |
| 76 | 76 |
| 77 IntervalBudget alr_budget_; | 77 IntervalBudget alr_budget_; |
| 78 rtc::Optional<int64_t> alr_started_time_ms_; | 78 rtc::Optional<int64_t> alr_started_time_ms_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace webrtc | 81 } // namespace webrtc |
| 82 | 82 |
| 83 #endif // WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ | 83 #endif // WEBRTC_MODULES_PACING_ALR_DETECTOR_H_ |
| OLD | NEW |