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

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: Fixing nits 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..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_;
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698