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

Side by Side Diff: webrtc/modules/congestion_controller/include/congestion_controller.h

Issue 2094863003: Reland of "Revert of Update the BWE when the network route changes. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 5 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
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 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 CongestionController(Clock* clock, 63 CongestionController(Clock* clock,
64 Observer* observer, 64 Observer* observer,
65 RemoteBitrateObserver* remote_bitrate_observer, 65 RemoteBitrateObserver* remote_bitrate_observer,
66 std::unique_ptr<PacketRouter> packet_router, 66 std::unique_ptr<PacketRouter> packet_router,
67 std::unique_ptr<PacedSender> pacer); 67 std::unique_ptr<PacedSender> pacer);
68 virtual ~CongestionController(); 68 virtual ~CongestionController();
69 69
70 virtual void SetBweBitrates(int min_bitrate_bps, 70 virtual void SetBweBitrates(int min_bitrate_bps,
71 int start_bitrate_bps, 71 int start_bitrate_bps,
72 int max_bitrate_bps); 72 int max_bitrate_bps);
73 // Resets both the BWE state and the bitrate estimator. Note the first
74 // argument is the bitrate_bps.
75 virtual void ResetBweAndBitrates(int bitrate_bps,
76 int min_bitrate_bps,
77 int max_bitrate_bps);
73 virtual void SignalNetworkState(NetworkState state); 78 virtual void SignalNetworkState(NetworkState state);
74 virtual BitrateController* GetBitrateController() const; 79 virtual BitrateController* GetBitrateController() const;
75 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( 80 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator(
76 bool send_side_bwe); 81 bool send_side_bwe);
77 virtual int64_t GetPacerQueuingDelayMs() const; 82 virtual int64_t GetPacerQueuingDelayMs() const;
78 virtual PacedSender* pacer() { return pacer_.get(); } 83 virtual PacedSender* pacer() { return pacer_.get(); }
79 virtual PacketRouter* packet_router() { return packet_router_.get(); } 84 virtual PacketRouter* packet_router() { return packet_router_.get(); }
80 virtual TransportFeedbackObserver* GetTransportFeedbackObserver(); 85 virtual TransportFeedbackObserver* GetTransportFeedbackObserver();
81 86
82 // SetAllocatedSendBitrateLimits sets bitrates limits imposed by send codec 87 // SetAllocatedSendBitrateLimits sets bitrates limits imposed by send codec
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_); 129 uint8_t last_reported_fraction_loss_ GUARDED_BY(critsect_);
125 int64_t last_reported_rtt_ GUARDED_BY(critsect_); 130 int64_t last_reported_rtt_ GUARDED_BY(critsect_);
126 NetworkState network_state_ GUARDED_BY(critsect_); 131 NetworkState network_state_ GUARDED_BY(critsect_);
127 132
128 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); 133 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController);
129 }; 134 };
130 135
131 } // namespace webrtc 136 } // namespace webrtc
132 137
133 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ 138 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/congestion_controller_unittest.cc ('k') | webrtc/p2p/base/candidatepairinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698