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 |