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

Unified Diff: net/quic/quic_sustained_bandwidth_recorder.cc

Issue 479443002: Not used in production. Add InRecovery() method to QUIC send algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_flag_to_enable_BBR_73146298
Patch Set: Created 6 years, 4 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
« no previous file with comments | « net/quic/quic_sustained_bandwidth_recorder.h ('k') | net/quic/quic_sustained_bandwidth_recorder_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sustained_bandwidth_recorder.cc
diff --git a/net/quic/quic_sustained_bandwidth_recorder.cc b/net/quic/quic_sustained_bandwidth_recorder.cc
index 9045014b40ddf1f4b7ab568eaac4434537560235..58a245bda7c4006318887582ad75dc72281dcf02 100644
--- a/net/quic/quic_sustained_bandwidth_recorder.cc
+++ b/net/quic/quic_sustained_bandwidth_recorder.cc
@@ -13,12 +13,14 @@ namespace net {
QuicSustainedBandwidthRecorder::QuicSustainedBandwidthRecorder()
: has_estimate_(false),
is_recording_(false),
+ bandwidth_estimate_recorded_during_slow_start_(false),
bandwidth_estimate_(QuicBandwidth::Zero()),
max_bandwidth_estimate_(QuicBandwidth::Zero()),
max_bandwidth_timestamp_(0),
start_time_(QuicTime::Zero()) {}
void QuicSustainedBandwidthRecorder::RecordEstimate(bool is_reliable_estimate,
+ bool in_slow_start,
QuicBandwidth bandwidth,
QuicTime estimate_time,
QuicWallTime wall_time,
@@ -42,6 +44,7 @@ void QuicSustainedBandwidthRecorder::RecordEstimate(bool is_reliable_estimate,
// bandwidth estimate as a valid sustained bandwidth estimate.
if (estimate_time.Subtract(start_time_) >= srtt.Multiply(3)) {
has_estimate_ = true;
+ bandwidth_estimate_recorded_during_slow_start_ = in_slow_start;
bandwidth_estimate_ = bandwidth;
DVLOG(1) << "New sustained bandwidth estimate (KBytes/s): "
<< bandwidth_estimate_.ToKBytesPerSecond();
« no previous file with comments | « net/quic/quic_sustained_bandwidth_recorder.h ('k') | net/quic/quic_sustained_bandwidth_recorder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698