summaryrefslogtreecommitdiff
path: root/chromium/components/precache/core/proto/quota.proto
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/precache/core/proto/quota.proto')
-rw-r--r--chromium/components/precache/core/proto/quota.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/components/precache/core/proto/quota.proto b/chromium/components/precache/core/proto/quota.proto
new file mode 100644
index 00000000000..effb895e75c
--- /dev/null
+++ b/chromium/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 = 2;
+}; \ No newline at end of file