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

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: Removing statistics prefs from Android WebView Created 6 years, 3 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..143df4b15e19801e78aca0fffc35df6b6a826f29 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -38,8 +38,9 @@ class Predictor;
namespace data_reduction_proxy {
class DataReductionProxyAuthRequestHandler;
class DataReductionProxyParams;
+class DataReductionProxyStatisticsPrefs;
class DataReductionProxyUsageStats;
-}
+} // namespace data_reduction_proxy
mmenke 2014/09/05 15:23:09 nit: Comment not needed (End namespace comments g
megjablon 2014/09/05 20:56:38 Good to know! Thanks
namespace domain_reliability {
class DomainReliabilityMonitor;
@@ -166,6 +167,12 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_auth_request_handler_ = handler;
}
+ // |statistics_prefs_| must outlive this ChromeNetworkDelegate.
+ void set_data_reduction_proxy_statistics_prefs(
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* service) {
+ statistics_prefs_ = service;
bengr 2014/09/04 21:18:21 Rename "service" as "statistics_prefs"
megjablon 2014/09/05 20:56:39 Done.
+ }
+
void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) {
on_resolve_proxy_handler_ = handler;
}
@@ -319,6 +326,7 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_usage_stats_;
data_reduction_proxy::DataReductionProxyAuthRequestHandler*
data_reduction_proxy_auth_request_handler_;
mmenke 2014/09/05 15:23:09 While you're here, this should be indented 4 more.
megjablon 2014/09/05 20:56:38 Done.
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* statistics_prefs_;
mmenke 2014/09/05 15:23:09 optional: Actually, I think we don't need to know
mmenke 2014/09/05 15:23:09 data_reduction_proxy_statistics_prefs_ is more con
megjablon 2014/09/05 20:56:38 Agreed.
megjablon 2014/09/05 20:56:39 I think it makes more sense to keep Prefs on it be
OnResolveProxyHandler on_resolve_proxy_handler_;
ProxyConfigGetter proxy_config_getter_;

Powered by Google App Engine
This is Rietveld 408576698