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

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: Undo BUILD.gn and fix aw_browser_context 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..008b5418621a449f9100c8014664fab0e55dcf14 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -37,6 +37,7 @@ class Predictor;
namespace data_reduction_proxy {
class DataReductionProxyAuthRequestHandler;
+class DataReductionProxyStatisticsPrefs;
class DataReductionProxyParams;
class DataReductionProxyUsageStats;
}
bengr 2014/08/27 04:53:24 } // namespace data_reduction_proxy
megjablon 2014/08/28 20:44:06 Done.
@@ -166,6 +167,11 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_auth_request_handler_ = handler;
}
+ void set_data_reduction_proxy_statistics_prefs(
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs* service) {
bengr 2014/08/27 04:53:24 Rename as statistics_prefs
megjablon 2014/08/28 20:44:06 Done.
+ data_reduction_proxy_statistics_prefs_ = service;
+ }
+
void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) {
on_resolve_proxy_handler_ = handler;
}
@@ -319,7 +325,8 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_usage_stats_;
data_reduction_proxy::DataReductionProxyAuthRequestHandler*
data_reduction_proxy_auth_request_handler_;
-
+ data_reduction_proxy::DataReductionProxyStatisticsPrefs*
+ data_reduction_proxy_statistics_prefs_;
bengr 2014/08/27 04:53:24 indent 4
megjablon 2014/08/28 20:44:06 Done.
OnResolveProxyHandler on_resolve_proxy_handler_;
ProxyConfigGetter proxy_config_getter_;

Powered by Google App Engine
This is Rietveld 408576698