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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_metrics.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: components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h b/components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
index b308742aa3426fa6ece7a7f5a93dbb9322c2f86b..68fdb21770064c6b0c91804e6c8d87d0669ed187 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
@@ -11,10 +11,10 @@ namespace net {
class URLRequest;
}
-class PrefService;
-
namespace data_reduction_proxy {
+class DataReductionProxyStatisticsPrefs;
+
enum DataReductionProxyRequestType {
VIA_DATA_REDUCTION_PROXY, // A request served by the data reduction proxy.
@@ -46,7 +46,8 @@ void UpdateContentLengthPrefsForDataReductionProxy(
int original_content_length,
bool with_data_reduction_proxy_enabled,
DataReductionProxyRequestType request_type,
- base::Time now, PrefService* prefs);
+ base::Time now,
+ DataReductionProxyStatisticsPrefs* prefs);
// Records daily data savings statistics to prefs and reports data savings UMA.
void UpdateContentLengthPrefs(
@@ -54,7 +55,7 @@ void UpdateContentLengthPrefs(
int original_content_length,
bool with_data_reduction_proxy_enabled,
DataReductionProxyRequestType request_type,
- PrefService* prefs);
+ DataReductionProxyStatisticsPrefs* prefs);
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698