| 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 };
|
|
|