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

Unified Diff: components/precache/core/proto/quota.proto

Issue 2736323002: Add Precache.Fetch.ResponseBytes.Daily.
Patch Set: Created 3 years, 9 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
« no previous file with comments | « components/precache/core/precache_fetcher.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/proto/quota.proto
diff --git a/components/precache/core/proto/quota.proto b/components/precache/core/proto/quota.proto
index effb895e75cc5a42865913ccac3d90dec379655f..6a60e7c54c6ec9947b2acd03ad531a6e1fecb2fd 100644
--- a/components/precache/core/proto/quota.proto
+++ b/components/precache/core/proto/quota.proto
@@ -12,9 +12,14 @@ option optimize_for = LITE_RUNTIME;
// Quota limit and expiry time. This is stored in a database, and not
// transferred via network.
message PrecacheQuota {
- // Represents the start time of this quota.
+ // Represents the start time of this quota. After enough time has elapsed
+ // since the start time (as defined in PrecacheFetcher::IsQuotaTimeExpired), a
+ // new quota is created.
optional int64 start_time = 1;
// Maximum number of bytes that can be fetched until this quota expires.
+ // Initialized to PrecacheConfigurationSettings.daily_quota_total and
+ // decremented for every byte downloaded. After this reaches zero, the
+ // PrecacheFetcher will not download any more until a new quota window starts.
optional uint64 remaining = 2;
-};
+};
« no previous file with comments | « components/precache/core/precache_fetcher.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698