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

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

Issue 2335913002: Add daily quota for precache (Closed)
Patch Set: Addressed sclittle@ comments Created 4 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/precache/core/proto/quota.proto
diff --git a/components/precache/core/proto/quota.proto b/components/precache/core/proto/quota.proto
new file mode 100644
index 0000000000000000000000000000000000000000..757abe93ab429dd6dd0ef08b13b471effd17d222
--- /dev/null
+++ b/components/precache/core/proto/quota.proto
@@ -0,0 +1,20 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+package precache;
+
+// Chrome requires this.
+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.
+ optional int64 start_time = 1;
+
+ // Maximum number of bytes that can be fetched until this quota expires.
+ optional uint64 remaining = 3;
sclittle 2016/09/22 21:36:55 nit: Change the field number here from 3 to 2.
Raj 2016/09/23 01:32:41 Done.
+};
« components/precache/core/precache_fetcher.cc ('K') | « components/precache/core/proto/precache.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698