Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: webrtc/modules/bitrate_controller/bitrate_controller_impl.h

Issue 1411673003: Added protobuf message for loss-based BWE events, and wired it up to the send side bandwidth estima… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
34 bool AvailableBandwidth(uint32_t* bandwidth) const override; 34 bool AvailableBandwidth(uint32_t* bandwidth) const override;
35 35
36 RtcpBandwidthObserver* CreateRtcpBandwidthObserver() override; 36 RtcpBandwidthObserver* CreateRtcpBandwidthObserver() override;
37 37
38 void SetStartBitrate(int start_bitrate_bps) override; 38 void SetStartBitrate(int start_bitrate_bps) override;
39 void SetMinMaxBitrate(int min_bitrate_bps, 39 void SetMinMaxBitrate(int min_bitrate_bps,
40 int max_bitrate_bps) override; 40 int max_bitrate_bps) override;
41 41
42 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override; 42 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override;
43 43
44 void SetEventLog(RtcEventLog* event_log) override;
45
44 int64_t TimeUntilNextProcess() override; 46 int64_t TimeUntilNextProcess() override;
45 int32_t Process() override; 47 int32_t Process() override;
46 48
47 private: 49 private:
48 class RtcpBandwidthObserverImpl; 50 class RtcpBandwidthObserverImpl;
49 51
50 // Called by BitrateObserver's direct from the RTCP module. 52 // Called by BitrateObserver's direct from the RTCP module.
51 void OnReceivedEstimatedBitrate(uint32_t bitrate); 53 void OnReceivedEstimatedBitrate(uint32_t bitrate);
52 54
53 void OnReceivedRtcpReceiverReport(uint8_t fraction_loss, 55 void OnReceivedRtcpReceiverReport(uint8_t fraction_loss,
(...skipping 23 matching lines...) Expand all
77 79
78 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); 80 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_);
79 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); 81 uint8_t last_fraction_loss_ GUARDED_BY(critsect_);
80 int64_t last_rtt_ms_ GUARDED_BY(critsect_); 82 int64_t last_rtt_ms_ GUARDED_BY(critsect_);
81 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); 83 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_);
82 84
83 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); 85 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl);
84 }; 86 };
85 } // namespace webrtc 87 } // namespace webrtc
86 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ 88 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/call/rtc_event_log_unittest.cc ('k') | webrtc/modules/bitrate_controller/bitrate_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698