| Index: net/quic/quic_sustained_bandwidth_recorder.h
|
| diff --git a/net/quic/quic_sustained_bandwidth_recorder.h b/net/quic/quic_sustained_bandwidth_recorder.h
|
| index 402640920cb254ae3c15b51a594647aa1453bf33..2f05a6c8a9fa1046818d64eb012cc47f31e8a373 100644
|
| --- a/net/quic/quic_sustained_bandwidth_recorder.h
|
| +++ b/net/quic/quic_sustained_bandwidth_recorder.h
|
| @@ -24,6 +24,7 @@ class NET_EXPORT_PRIVATE QuicSustainedBandwidthRecorder {
|
| // bandwidth estimate.
|
| // |time_now| is used as a max bandwidth timestamp if needed.
|
| void RecordEstimate(bool is_reliable_estimate,
|
| + bool in_slow_start,
|
| QuicBandwidth bandwidth,
|
| QuicTime estimate_time,
|
| QuicWallTime wall_time,
|
| @@ -48,6 +49,11 @@ class NET_EXPORT_PRIVATE QuicSustainedBandwidthRecorder {
|
| return max_bandwidth_timestamp_;
|
| }
|
|
|
| + bool EstimateRecordedDuringSlowStart() const {
|
| + DCHECK(has_estimate_);
|
| + return bandwidth_estimate_recorded_during_slow_start_;
|
| + }
|
| +
|
| private:
|
| // True if we have been able to calculate sustained bandwidth, over at least
|
| // one recording period (3 * rtt).
|
| @@ -56,6 +62,10 @@ class NET_EXPORT_PRIVATE QuicSustainedBandwidthRecorder {
|
| // True if the last call to RecordEstimate had a reliable estimate.
|
| bool is_recording_;
|
|
|
| + // True if the current sustained bandwidth estimate was generated while in
|
| + // slow start.
|
| + bool bandwidth_estimate_recorded_during_slow_start_;
|
| +
|
| // The latest sustained bandwidth estimate.
|
| QuicBandwidth bandwidth_estimate_;
|
|
|
|
|