| 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 0794a0719a8f5c3bb1c3eff3f373e86f70221979..aa5a4c916f510ea5fcf92e656ae2cee3c8414a11 100644
|
| --- a/net/quic/quic_sustained_bandwidth_recorder.h
|
| +++ b/net/quic/quic_sustained_bandwidth_recorder.h
|
| @@ -11,6 +11,10 @@
|
|
|
| namespace net {
|
|
|
| +namespace test {
|
| +class QuicSustainedBandwidthRecorderPeer;
|
| +} // namespace test
|
| +
|
| // This class keeps track of a sustained bandwidth estimate to ultimately send
|
| // to the client in a server config update message. A sustained bandwidth
|
| // estimate is only marked as valid if the QuicSustainedBandwidthRecorder has
|
| @@ -19,11 +23,11 @@ class NET_EXPORT_PRIVATE QuicSustainedBandwidthRecorder {
|
| public:
|
| QuicSustainedBandwidthRecorder();
|
|
|
| - // As long as |is_reliable_estimate| is consistently true, multiple calls to
|
| - // this method over a 3 * srtt period results in storage of a valid sustained
|
| + // As long as |in_recovery| is consistently false, multiple calls to this
|
| + // method over a 3 * srtt period results in storage of a valid sustained
|
| // bandwidth estimate.
|
| // |time_now| is used as a max bandwidth timestamp if needed.
|
| - void RecordEstimate(bool is_reliable_estimate,
|
| + void RecordEstimate(bool in_recovery,
|
| bool in_slow_start,
|
| QuicBandwidth bandwidth,
|
| QuicTime estimate_time,
|
| @@ -55,6 +59,8 @@ class NET_EXPORT_PRIVATE QuicSustainedBandwidthRecorder {
|
| }
|
|
|
| private:
|
| + friend class test::QuicSustainedBandwidthRecorderPeer;
|
| +
|
| // True if we have been able to calculate sustained bandwidth, over at least
|
| // one recording period (3 * rtt).
|
| bool has_estimate_;
|
|
|