OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; | 49 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; |
50 | 50 |
51 // Implements CallStatsObserver. | 51 // Implements CallStatsObserver. |
52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
53 | 53 |
54 private: | 54 private: |
55 // Implements RemoteBitrateObserver. | 55 // Implements RemoteBitrateObserver. |
56 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 56 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
57 uint32_t bitrate) override; | 57 uint32_t bitrate) override; |
58 | 58 |
| 59 void OnProbeBitrate(uint32_t bitrate) override; |
| 60 |
59 rtc::CriticalSection lock_; | 61 rtc::CriticalSection lock_; |
60 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); | 62 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); |
61 BitrateController* bitrate_controller_; | 63 BitrateController* bitrate_controller_; |
62 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; | 64 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; |
63 Clock* const clock_; | 65 Clock* const clock_; |
64 int64_t current_offset_ms_; | 66 int64_t current_offset_ms_; |
65 int64_t last_timestamp_us_; | 67 int64_t last_timestamp_us_; |
66 }; | 68 }; |
67 | 69 |
68 } // namespace webrtc | 70 } // namespace webrtc |
69 | 71 |
70 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ | 72 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ |
OLD | NEW |