| Index: net/base/network_quality.h
|
| diff --git a/net/base/network_quality.h b/net/base/network_quality.h
|
| index 4e2985776e0f4a8430b80c7523751391b4b0c0b7..25cc66d26adc3608c16fa1cf8bed400696beee5c 100644
|
| --- a/net/base/network_quality.h
|
| +++ b/net/base/network_quality.h
|
| @@ -23,27 +23,42 @@ struct NET_EXPORT_PRIVATE NetworkQuality {
|
| peak_throughput_kbps(peak_throughput_kbps),
|
| peak_throughput_kbps_confidence(peak_throughput_kbps_confidence) {}
|
|
|
| + NetworkQuality(const NetworkQuality& other)
|
| + : fastest_rtt(other.fastest_rtt),
|
| + fastest_rtt_confidence(other.fastest_rtt_confidence),
|
| + peak_throughput_kbps(other.peak_throughput_kbps),
|
| + peak_throughput_kbps_confidence(other.peak_throughput_kbps_confidence) {
|
| + }
|
| +
|
| + NetworkQuality& operator=(const NetworkQuality& other) {
|
| + fastest_rtt = other.fastest_rtt;
|
| + fastest_rtt_confidence = other.fastest_rtt_confidence;
|
| + peak_throughput_kbps = other.peak_throughput_kbps;
|
| + peak_throughput_kbps_confidence = other.peak_throughput_kbps_confidence;
|
| + return *this;
|
| + }
|
| +
|
| ~NetworkQuality() {}
|
|
|
| // The fastest round trip time observed for the current connection.
|
| - const base::TimeDelta fastest_rtt;
|
| + base::TimeDelta fastest_rtt;
|
|
|
| // Confidence of the |fastest_rtt| estimate. Value lies between 0.0 and 1.0
|
| // with 0.0 being no confidence and 1.0 implying that estimates are same as
|
| // ground truth.
|
| // TODO(tbansal): Define units so values intermediate between 0.0 and 1.0 are
|
| // meaningful.
|
| - const double fastest_rtt_confidence;
|
| + double fastest_rtt_confidence;
|
|
|
| // Peak throughput in Kbps observed for the current connection.
|
| - const uint64_t peak_throughput_kbps;
|
| + uint64_t peak_throughput_kbps;
|
|
|
| // Confidence of the |peak_throughput_kbps| estimate. Value lies between 0.0
|
| // and 1.0 with 0.0 being no confidence and 1.0 implying that estimates are
|
| // same as ground truth.
|
| // TODO(tbansal): Define units so values intermediate between 0.0 and 1.0 are
|
| // meaningful.
|
| - const double peak_throughput_kbps_confidence;
|
| + double peak_throughput_kbps_confidence;
|
| };
|
|
|
| } // namespace net
|
|
|