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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@network-delegate
Patch Set: Addressed comment from mmenke Created 6 years 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_network_delegate.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
index 17dc32f9f52a5e7c9ea2434f3673d1f12fc1deb5..2f5f370cb618cf7e1ef66d9f58b06b3db6368724 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
@@ -38,6 +38,7 @@ class URLRequest;
namespace data_reduction_proxy {
class DataReductionProxyAuthRequestHandler;
+class DataReductionProxyConfigurator;
class DataReductionProxyParams;
class DataReductionProxyStatisticsPrefs;
class DataReductionProxyUsageStats;
@@ -74,7 +75,7 @@ class DataReductionProxyNetworkDelegate : public net::LayeredNetworkDelegate {
scoped_ptr<net::NetworkDelegate> network_delegate,
DataReductionProxyParams* params,
DataReductionProxyAuthRequestHandler* handler,
- const ProxyConfigGetter& getter);
+ const DataReductionProxyConfigurator* configurator);
~DataReductionProxyNetworkDelegate() override;
// Initializes member variables used for overriding the proxy config.
@@ -161,7 +162,7 @@ class DataReductionProxyNetworkDelegate : public net::LayeredNetworkDelegate {
OnResolveProxyHandler on_resolve_proxy_handler_;
- ProxyConfigGetter proxy_config_getter_;
+ const DataReductionProxyConfigurator* configurator_;
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyNetworkDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698