Index: webrtc/modules/congestion_controller/probe_bitrate_estimator.h |
diff --git a/webrtc/modules/congestion_controller/probe_bitrate_estimator.h b/webrtc/modules/congestion_controller/probe_bitrate_estimator.h |
index 1666a1a584f00f68e6158e2eb507dce0329bbc5b..4d936080d4118d817b287e58d3eae5b9fa8c4bca 100644 |
--- a/webrtc/modules/congestion_controller/probe_bitrate_estimator.h |
+++ b/webrtc/modules/congestion_controller/probe_bitrate_estimator.h |
@@ -28,7 +28,7 @@ class ProbeBitrateEstimator { |
// Returns the estimated bitrate if the probe completes a valid cluster. |
int HandleProbeAndEstimateBitrate(const PacketFeedback& packet_feedback); |
- rtc::Optional<int> FetchAndResetLastEstimatedBitrateBps(); |
+ rtc::Optional<int> FetchAndResetLastEstimatedBitrateBps(int64_t timeout = 0); |
private: |
struct AggregatedCluster { |
@@ -48,6 +48,9 @@ class ProbeBitrateEstimator { |
std::map<int, AggregatedCluster> clusters_; |
RtcEventLog* const event_log_; |
rtc::Optional<int> estimated_bitrate_bps_; |
+ int64_t last_estimate_update_ms_ = 0; |
+ int64_t start_ = 0; |
+ int cluster_id_ = -1; |
}; |
} // namespace webrtc |