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 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Initial state where no probing has been triggered yet. | 44 // Initial state where no probing has been triggered yet. |
45 kInit, | 45 kInit, |
46 // Waiting for probing results to continue further probing. | 46 // Waiting for probing results to continue further probing. |
47 kWaitingForProbingResult, | 47 kWaitingForProbingResult, |
48 // Probing is complete. | 48 // Probing is complete. |
49 kProbingComplete, | 49 kProbingComplete, |
50 }; | 50 }; |
51 | 51 |
52 void InitiateExponentialProbing() EXCLUSIVE_LOCKS_REQUIRED(critsect_); | 52 void InitiateExponentialProbing() EXCLUSIVE_LOCKS_REQUIRED(critsect_); |
53 void InitiateProbing(int64_t now_ms, | 53 void InitiateProbing(int64_t now_ms, |
54 std::initializer_list<int> bitrates_to_probe, | 54 std::initializer_list<int64_t> bitrates_to_probe, |
55 int min_bitrate_to_probe_further_bps) | 55 bool probe_further) EXCLUSIVE_LOCKS_REQUIRED(critsect_); |
56 EXCLUSIVE_LOCKS_REQUIRED(critsect_); | |
57 | 56 |
58 rtc::CriticalSection critsect_; | 57 rtc::CriticalSection critsect_; |
59 PacedSender* const pacer_; | 58 PacedSender* const pacer_; |
60 Clock* const clock_; | 59 Clock* const clock_; |
61 NetworkState network_state_ GUARDED_BY(critsect_); | 60 NetworkState network_state_ GUARDED_BY(critsect_); |
62 State state_ GUARDED_BY(critsect_); | 61 State state_ GUARDED_BY(critsect_); |
63 int min_bitrate_to_probe_further_bps_ GUARDED_BY(critsect_); | 62 int min_bitrate_to_probe_further_bps_ GUARDED_BY(critsect_); |
64 int64_t time_last_probing_initiated_ms_ GUARDED_BY(critsect_); | 63 int64_t time_last_probing_initiated_ms_ GUARDED_BY(critsect_); |
65 int estimated_bitrate_bps_ GUARDED_BY(critsect_); | 64 int estimated_bitrate_bps_ GUARDED_BY(critsect_); |
66 int start_bitrate_bps_ GUARDED_BY(critsect_); | 65 int start_bitrate_bps_ GUARDED_BY(critsect_); |
67 int max_bitrate_bps_ GUARDED_BY(critsect_); | 66 int max_bitrate_bps_ GUARDED_BY(critsect_); |
68 int64_t last_alr_probing_time_ GUARDED_BY(critsect_); | 67 int64_t last_alr_probing_time_ GUARDED_BY(critsect_); |
69 bool enable_periodic_alr_probing_ GUARDED_BY(critsect_); | 68 bool enable_periodic_alr_probing_ GUARDED_BY(critsect_); |
70 | 69 |
71 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(ProbeController); | 70 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(ProbeController); |
72 }; | 71 }; |
73 | 72 |
74 } // namespace webrtc | 73 } // namespace webrtc |
75 | 74 |
76 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_CONTROLLER_H_ | 75 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_PROBE_CONTROLLER_H_ |
OLD | NEW |