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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h

Issue 2791563002: Create feature and enable data collection for Data Saver site breakdown (Closed)
Patch Set: sclittle comments Created 3 years, 8 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/core/browser/data_reduction_proxy_compression_stats.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
index 780e9d2884ef009d2d7b3bb02a3090f1a2826be9..b3cf152cc31f7323f3b71e9f5717ac74dce776f3 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
@@ -125,6 +125,11 @@ class DataReductionProxyCompressionStats {
// for the last stored interval.
void OnCurrentDataUsageLoaded(std::unique_ptr<DataUsageBucket> data_usage);
+ // Sets the value of |prefs::kDataUsageReportingEnabled| to |enabled|.
+ // Initializes data usage statistics in memory when pref is enabled and
+ // persists data usage to memory when pref is disabled.
+ void SetDataUsageReportingEnabled(bool enabled);
+
private:
// Enum to track the state of loading data usage from storage.
enum CurrentDataUsageLoadStatus { NOT_LOADED = 0, LOADING = 1, LOADED = 2 };

Powered by Google App Engine
This is Rietveld 408576698