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

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

Issue 2407143002: Remove GetFeedbackInterval in sender side BWE. (Closed)
Patch Set: Respond to comments Created 3 years, 9 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_bitrate_estimator.h
diff --git a/webrtc/modules/congestion_controller/probe_bitrate_estimator.h b/webrtc/modules/congestion_controller/probe_bitrate_estimator.h
index c25c727dd9b995d4030da9158e82d16ad841e7ef..54e6492340a392f046de1d7c3f65d79734c38d2c 100644
--- a/webrtc/modules/congestion_controller/probe_bitrate_estimator.h
+++ b/webrtc/modules/congestion_controller/probe_bitrate_estimator.h
@@ -26,6 +26,8 @@ class ProbeBitrateEstimator {
// Returns the estimated bitrate if the probe completes a valid cluster.
int HandleProbeAndEstimateBitrate(const PacketInfo& packet_info);
+ rtc::Optional<int> FetchLastEstimatedBitrateBps();
+
private:
struct AggregatedCluster {
int num_probes = 0;
@@ -42,6 +44,7 @@ class ProbeBitrateEstimator {
void EraseOldClusters(int64_t timestamp_ms);
std::map<int, AggregatedCluster> clusters_;
+ rtc::Optional<int> estimated_bitrate_bps_;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698