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

Unified Diff: components/data_reduction_proxy/core/browser/data_usage_store.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_usage_store.h
diff --git a/components/data_reduction_proxy/core/browser/data_usage_store.h b/components/data_reduction_proxy/core/browser/data_usage_store.h
index c346408374be284c09a1e2c6ad1288bc2dd4242a..9ef594a55bd80c7e629cbd616da91690610ec40c 100644
--- a/components/data_reduction_proxy/core/browser/data_usage_store.h
+++ b/components/data_reduction_proxy/core/browser/data_usage_store.h
@@ -21,6 +21,12 @@ namespace data_reduction_proxy {
class DataStore;
class DataUsageBucket;
+// Time interval for each DataUsageBucket.
+constexpr int kDataUsageBucketLengthInMinutes = 15;
+
+// Number of days for which to maintain data usage history.
+constexpr int kDataUsageHistoryNumDays = 60;
+
// Store for detailed data usage stats. Data usage from every
// |kDataUsageBucketLengthMins| interval is stored in a DataUsageBucket.
class DataUsageStore {

Powered by Google App Engine
This is Rietveld 408576698