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

Unified Diff: webrtc/modules/pacing/alr_detector.h

Issue 2504023002: Implement periodic bandwidth probing in application-limited region. (Closed)
Patch Set: address feedback Created 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/pacing/alr_detector.h
diff --git a/webrtc/modules/pacing/alr_detector.h b/webrtc/modules/pacing/alr_detector.h
index 31b1644d3020fc90a47b920378e91e1f5f9a4dc4..d8870ff04bb14d783e803c041041c9b4fe066506 100644
--- a/webrtc/modules/pacing/alr_detector.h
+++ b/webrtc/modules/pacing/alr_detector.h
@@ -35,13 +35,16 @@ class AlrDetector {
// Set current estimated bandwidth.
void SetEstimatedBitrate(int bitrate_bps);
- // Returns true if currently in application-limited region.
- bool InApplicationLimitedRegion() const;
+ // Returns time in milliseconds when the current application-limited region
+ // started or empty result if the sender is currently not application-limited.
+ rtc::Optional<int64_t> GetApplicationLimitedRegionStartTime() const;
private:
RateStatistics rate_;
int estimated_bitrate_bps_ = 0;
- bool application_limited_ = false;
+
+ // Non-empty in ALR state.
+ rtc::Optional<int64_t> alr_started_time_ms_;
};
} // namespace webrtc
« no previous file with comments | « webrtc/modules/congestion_controller/probe_controller_unittest.cc ('k') | webrtc/modules/pacing/alr_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698