Chromium Code Reviews| Index: net/nqe/network_quality_estimator.h |
| diff --git a/net/nqe/network_quality_estimator.h b/net/nqe/network_quality_estimator.h |
| index 80c7feb6703eb7999e95c9db5e55583680abe5bb..3529b77281221aa016d01b1d8c86056f34841377 100644 |
| --- a/net/nqe/network_quality_estimator.h |
| +++ b/net/nqe/network_quality_estimator.h |
| @@ -148,8 +148,10 @@ class NET_EXPORT NetworkQualityEstimator |
| ~NetworkQualityEstimator() override; |
| - // Returns the effective type of the current connection. Virtualized for |
| - // testing. |
| + // Returns the last computed effective type of the current connection. The |
| + // effective connection type is computed by network quality estimator at |
| + // regular intervals and at certain events (e.g., connection change). |
| + // Virtualized for testing. |
| virtual EffectiveConnectionType GetEffectiveConnectionType() const; |
| // Returns the effective type of the current connection based on only the |
| @@ -286,6 +288,10 @@ class NET_EXPORT NetworkQualityEstimator |
| // Returns a random double in the range [0.0, 1.0). Virtualized for testing. |
| virtual double RandDouble() const; |
| + // Forces recomputtion of effective connection type, and notifies observers if |
|
RyanSturm
2016/08/22 18:01:52
s/recomputtion/recomputation
tbansal1
2016/08/22 18:17:41
Done.
|
| + // there is a change in its value. |
| + void RecomputeEffectiveConnectionType(); |
| + |
| private: |
| FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, |
| AdaptiveRecomputationEffectiveConnectionType); |