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

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

Issue 2377303002: Revert of Fix race / crash in OnNetworkRouteChanged(). (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/bitrate_controller/bitrate_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int max_bitrate_bps) override; 54 int max_bitrate_bps) override;
55 55
56 56
57 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override; 57 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override;
58 58
59 // Returns true if the parameters have changed since the last call. 59 // Returns true if the parameters have changed since the last call.
60 bool GetNetworkParameters(uint32_t* bitrate, 60 bool GetNetworkParameters(uint32_t* bitrate,
61 uint8_t* fraction_loss, 61 uint8_t* fraction_loss,
62 int64_t* rtt) override; 62 int64_t* rtt) override;
63 63
64 void OnDelayBasedBweResult(const DelayBasedBwe::Result& result) override; 64 // RemoteBitrateObserver overrides.
65 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
66 uint32_t bitrate_bps) override;
67 void OnProbeBitrate(uint32_t bitrate_bps) override;
65 68
66 int64_t TimeUntilNextProcess() override; 69 int64_t TimeUntilNextProcess() override;
67 void Process() override; 70 void Process() override;
68 71
69 private: 72 private:
70 class RtcpBandwidthObserverImpl; 73 class RtcpBandwidthObserverImpl;
71 74
72 // Called by BitrateObserver's direct from the RTCP module. 75 // Called by BitrateObserver's direct from the RTCP module.
73 void OnReceiverEstimatedBitrate(uint32_t bitrate); 76 void OnReceiverEstimatedBitrate(uint32_t bitrate);
74 77
(...skipping 21 matching lines...) Expand all
96 99
97 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); 100 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_);
98 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); 101 uint8_t last_fraction_loss_ GUARDED_BY(critsect_);
99 int64_t last_rtt_ms_ GUARDED_BY(critsect_); 102 int64_t last_rtt_ms_ GUARDED_BY(critsect_);
100 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); 103 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_);
101 104
102 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); 105 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl);
103 }; 106 };
104 } // namespace webrtc 107 } // namespace webrtc
105 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ 108 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/bitrate_controller/bitrate_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698