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(); |