Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5718)

Unified Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service.h

Issue 2183153002: NQE: Move ECT to net:: namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, also fixed comnpilation error Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 dfe35b19486c67308d98103220b5184df500dacb..1d6a98e91b30684c68a520cc845de7ba48176ffc 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
@@ -8,7 +8,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "net/nqe/network_quality_estimator.h"
+#include "net/nqe/effective_connection_type.h"
// UI service to determine the current EffectiveConnectionType.
class UINetworkQualityEstimatorService : public KeyedService {
@@ -17,13 +17,11 @@ class UINetworkQualityEstimatorService : public KeyedService {
~UINetworkQualityEstimatorService() override;
// The current EffectiveConnectionType.
- net::NetworkQualityEstimator::EffectiveConnectionType
- GetEffectiveConnectionType() const;
+ net::EffectiveConnectionType GetEffectiveConnectionType() const;
// Tests can manually set EffectiveConnectionType, but browser tests should
// expect that the EffectiveConnectionType could change.
- void SetEffectiveConnectionTypeForTesting(
- net::NetworkQualityEstimator::EffectiveConnectionType type);
+ void SetEffectiveConnectionTypeForTesting(net::EffectiveConnectionType type);
private:
class IONetworkQualityObserver;
@@ -35,11 +33,10 @@ class UINetworkQualityEstimatorService : public KeyedService {
// NetworkQualityEstimator::EffectiveConnectionType is an estimate of the
// quality of the network that may differ from the actual network type
// reported by NetworkchangeNotifier::GetConnectionType.
- void EffectiveConnectionTypeChanged(
- net::NetworkQualityEstimator::EffectiveConnectionType type);
+ void EffectiveConnectionTypeChanged(net::EffectiveConnectionType type);
// The current EffectiveConnectionType.
- net::NetworkQualityEstimator::EffectiveConnectionType type_;
+ net::EffectiveConnectionType type_;
// IO thread based observer that is owned by this service. Created on the UI
// thread, but used and deleted on the IO thread.

Powered by Google App Engine
This is Rietveld 408576698