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

Unified Diff: chrome/browser/net/chrome_network_delegate.h

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Addressed bengr comments Created 6 years, 4 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/chrome_network_delegate.h
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index 0431a660c7a652c4ad599b54b134874307080107..466b62799922333440d5b9ac762080ab7c42b3b1 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -37,9 +37,10 @@ class Predictor;
namespace data_reduction_proxy {
class DataReductionProxyAuthRequestHandler;
+class DataReductionProxyStatisticsPrefs;
class DataReductionProxyParams;
class DataReductionProxyUsageStats;
-}
+} // namespace data_reduction_proxy
namespace domain_reliability {
class DomainReliabilityMonitor;
@@ -166,6 +167,11 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_auth_request_handler_ = handler;
}
+ void set_data_reduction_proxy_statistics_prefs(
bengr 2014/08/28 21:38:34 Add a comment that says that |service| must outliv
megjablon 2014/08/30 01:10:03 Done.
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* service) {
+ statistics_prefs_ = service;
+ }
+
void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) {
on_resolve_proxy_handler_ = handler;
}
@@ -319,7 +325,7 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_usage_stats_;
data_reduction_proxy::DataReductionProxyAuthRequestHandler*
data_reduction_proxy_auth_request_handler_;
-
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* statistics_prefs_;
OnResolveProxyHandler on_resolve_proxy_handler_;
ProxyConfigGetter proxy_config_getter_;

Powered by Google App Engine
This is Rietveld 408576698