| Index: chrome/browser/net/nqe/ui_network_quality_estimator_service.h
|
| diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
|
| index 671e35ca435fdf776a206e29e2a0bbf919ceb0b1..dfe35b19486c67308d98103220b5184df500dacb 100644
|
| --- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
|
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
|
| @@ -13,20 +13,25 @@
|
| // UI service to determine the current EffectiveConnectionType.
|
| class UINetworkQualityEstimatorService : public KeyedService {
|
| public:
|
| UINetworkQualityEstimatorService();
|
| ~UINetworkQualityEstimatorService() override;
|
|
|
| // The current EffectiveConnectionType.
|
| net::NetworkQualityEstimator::EffectiveConnectionType
|
| GetEffectiveConnectionType() const;
|
|
|
| + // Tests can manually set EffectiveConnectionType, but browser tests should
|
| + // expect that the EffectiveConnectionType could change.
|
| + void SetEffectiveConnectionTypeForTesting(
|
| + net::NetworkQualityEstimator::EffectiveConnectionType type);
|
| +
|
| private:
|
| class IONetworkQualityObserver;
|
|
|
| // KeyedService implementation:
|
| void Shutdown() override;
|
|
|
| // Called when the EffectiveConnectionType has updated to |type|.
|
| // NetworkQualityEstimator::EffectiveConnectionType is an estimate of the
|
| // quality of the network that may differ from the actual network type
|
| // reported by NetworkchangeNotifier::GetConnectionType.
|
|
|