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

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

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.cc
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc b/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
index b4534e7af7a00b28b9019a17dab9ed2f11c02631..bb9f3d2d613948b039ae15bff7c371e93a10cd91 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/io_thread.h"
#include "content/public/browser/browser_thread.h"
+#include "net/nqe/network_quality_estimator.h"
// A class that sets itself as an observer of the EffectiveconnectionType for
// the browser IO thread. It reports any change in EffectiveConnectionType back
@@ -48,7 +49,7 @@ class UINetworkQualityEstimatorService::IONetworkQualityObserver
// net::NetworkQualityEstimator::EffectiveConnectionTypeObserver
// implementation:
void OnEffectiveConnectionTypeChanged(
- net::NetworkQualityEstimator::EffectiveConnectionType type) override {
+ net::EffectiveConnectionType type) override {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
content::BrowserThread::PostTask(
content::BrowserThread::UI, FROM_HERE,
@@ -65,7 +66,7 @@ class UINetworkQualityEstimatorService::IONetworkQualityObserver
};
UINetworkQualityEstimatorService::UINetworkQualityEstimatorService()
- : type_(net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_UNKNOWN),
+ : type_(net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN),
io_observer_(nullptr),
weak_factory_(this) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
@@ -91,18 +92,18 @@ void UINetworkQualityEstimatorService::Shutdown() {
}
void UINetworkQualityEstimatorService::EffectiveConnectionTypeChanged(
- net::NetworkQualityEstimator::EffectiveConnectionType type) {
+ net::EffectiveConnectionType type) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
type_ = type;
}
void UINetworkQualityEstimatorService::SetEffectiveConnectionTypeForTesting(
- net::NetworkQualityEstimator::EffectiveConnectionType type) {
+ net::EffectiveConnectionType type) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
type_ = type;
}
-net::NetworkQualityEstimator::EffectiveConnectionType
+net::EffectiveConnectionType
UINetworkQualityEstimatorService::GetEffectiveConnectionType() const {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
return type_;

Powered by Google App Engine
This is Rietveld 408576698