Index: chrome/browser/net/chrome_network_delegate.h |
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h |
index 0431a660c7a652c4ad599b54b134874307080107..f4625a44ded147bdf33e5f097133cc654366fc53 100644 |
--- a/chrome/browser/net/chrome_network_delegate.h |
+++ b/chrome/browser/net/chrome_network_delegate.h |
@@ -38,12 +38,13 @@ class Predictor; |
namespace data_reduction_proxy { |
class DataReductionProxyAuthRequestHandler; |
class DataReductionProxyParams; |
+class DataReductionProxyStatisticsPrefs; |
class DataReductionProxyUsageStats; |
} |
namespace domain_reliability { |
class DomainReliabilityMonitor; |
-} // namespace domain_reliability |
+} |
namespace extensions { |
class EventRouterForwarder; |
@@ -166,6 +167,14 @@ class ChromeNetworkDelegate : public net::NetworkDelegate { |
data_reduction_proxy_auth_request_handler_ = handler; |
} |
+ // |data_reduction_proxy_statistics_prefs_| must outlive this |
+ // ChromeNetworkDelegate. |
+ void set_data_reduction_proxy_statistics_prefs( |
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* |
+ statistics_prefs) { |
+ data_reduction_proxy_statistics_prefs_ = statistics_prefs; |
+ } |
+ |
void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) { |
on_resolve_proxy_handler_ = handler; |
} |
@@ -318,7 +327,9 @@ class ChromeNetworkDelegate : public net::NetworkDelegate { |
data_reduction_proxy::DataReductionProxyUsageStats* |
data_reduction_proxy_usage_stats_; |
data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
- data_reduction_proxy_auth_request_handler_; |
+ data_reduction_proxy_auth_request_handler_; |
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* |
+ data_reduction_proxy_statistics_prefs_; |
OnResolveProxyHandler on_resolve_proxy_handler_; |
ProxyConfigGetter proxy_config_getter_; |