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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.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: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
index 2a4c8ba34873f3f1dc9a7ca3e3afb4aef27780db..c7f7e8252a2fbca65e750cba9fccd62e3bff1675 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
@@ -22,6 +22,7 @@
#include "net/base/network_change_notifier.h"
#include "net/base/network_interfaces.h"
#include "net/log/net_log.h"
+#include "net/nqe/effective_connection_type.h"
#include "net/nqe/network_quality_estimator.h"
#include "net/proxy/proxy_config.h"
#include "net/proxy/proxy_retry_info.h"
@@ -310,8 +311,7 @@ class DataReductionProxyConfig
// Returns true if |effective_connection_type| is at least as poor as
// |lofi_effective_connection_type_threshold_|.
bool IsEffectiveConnectionTypeSlowerThanThreshold(
- net::NetworkQualityEstimator::EffectiveConnectionType
- effective_connection_type) const;
+ net::EffectiveConnectionType effective_connection_type) const;
std::unique_ptr<SecureProxyChecker> secure_proxy_checker_;
@@ -346,8 +346,7 @@ class DataReductionProxyConfig
// Thresholds from the field trial at which auto Lo-Fi is turned on.
// If the effective connection type is at least as slow as
// |lofi_effective_connection_type_threshold_|, Lo-Fi would be turned on.
- net::NetworkQualityEstimator::EffectiveConnectionType
- lofi_effective_connection_type_threshold_;
+ net::EffectiveConnectionType lofi_effective_connection_type_threshold_;
// State of auto Lo-Fi is not changed more than once in any period of
// duration shorter than |auto_lofi_hysteresis_|.

Powered by Google App Engine
This is Rietveld 408576698