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 * Usage: this class will register multiple RtcpBitrateObserver's one at each | 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 void OnNetworkChanged(uint32_t bitrate, | 68 void OnNetworkChanged(uint32_t bitrate, |
69 uint8_t fraction_loss, // 0 - 255. | 69 uint8_t fraction_loss, // 0 - 255. |
70 int64_t rtt) EXCLUSIVE_LOCKS_REQUIRED(critsect_); | 70 int64_t rtt) EXCLUSIVE_LOCKS_REQUIRED(critsect_); |
71 | 71 |
72 // Used by process thread. | 72 // Used by process thread. |
73 Clock* clock_; | 73 Clock* clock_; |
74 BitrateObserver* observer_; | 74 BitrateObserver* observer_; |
75 int64_t last_bitrate_update_ms_; | 75 int64_t last_bitrate_update_ms_; |
76 | 76 |
77 mutable rtc::CriticalSection critsect_; | 77 rtc::CriticalSection critsect_; |
78 SendSideBandwidthEstimation bandwidth_estimation_ GUARDED_BY(critsect_); | 78 SendSideBandwidthEstimation bandwidth_estimation_ GUARDED_BY(critsect_); |
79 uint32_t reserved_bitrate_bps_ GUARDED_BY(critsect_); | 79 uint32_t reserved_bitrate_bps_ GUARDED_BY(critsect_); |
80 | 80 |
81 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); | 81 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); |
82 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); | 82 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); |
83 int64_t last_rtt_ms_ GUARDED_BY(critsect_); | 83 int64_t last_rtt_ms_ GUARDED_BY(critsect_); |
84 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); | 84 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); |
85 | 85 |
86 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); | 86 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); |
87 }; | 87 }; |
88 } // namespace webrtc | 88 } // namespace webrtc |
89 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ | 89 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ |
OLD | NEW |