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

Unified Diff: webrtc/modules/congestion_controller/probe_controller.h

Issue 2458863002: Start probes only after network is connected. (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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/congestion_controller/probe_controller.h
diff --git a/webrtc/modules/congestion_controller/probe_controller.h b/webrtc/modules/congestion_controller/probe_controller.h
index efcc2a1d4a39ab27ebdf10e22d91a4484d64ebf3..eb29eacf0d40ecdd644f5ec1689fc93eb77f8313 100644
--- a/webrtc/modules/congestion_controller/probe_controller.h
+++ b/webrtc/modules/congestion_controller/probe_controller.h
@@ -17,6 +17,10 @@
#include "webrtc/common_types.h"
#include "webrtc/modules/pacing/paced_sender.h"
+namespace rtc {
+struct NetworkRoute;
+}
+
namespace webrtc {
class Clock;
@@ -28,9 +32,12 @@ class ProbeController {
public:
ProbeController(PacedSender* pacer, Clock* clock);
- void SetBitrates(int min_bitrate_bps,
- int start_bitrate_bps,
+ void SetBitrates(int start_bitrate_bps,
+ int min_bitrate_bps,
int max_bitrate_bps);
+
+ void OnNetworkRouteChanged(const rtc::NetworkRoute& route);
+
void SetEstimatedBitrate(int bitrate_bps);
private:
@@ -52,6 +59,7 @@ class ProbeController {
int min_bitrate_to_probe_further_bps_ GUARDED_BY(critsect_);
int64_t time_last_probing_initiated_ms_ GUARDED_BY(critsect_);
int estimated_bitrate_bps_ GUARDED_BY(critsect_);
+ int start_bitrate_bps_ GUARDED_BY(critsect_);
int max_bitrate_bps_ GUARDED_BY(critsect_);
int64_t last_alr_probing_time_ GUARDED_BY(critsect_);

Powered by Google App Engine
This is Rietveld 408576698