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

Unified Diff: chrome/browser/budget_service/budget.proto

Issue 2107173002: Add the future storage framework for the BudgetDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback and added histograms.xml update. Created 4 years, 6 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: chrome/browser/budget_service/budget.proto
diff --git a/chrome/browser/budget_service/budget.proto b/chrome/browser/budget_service/budget.proto
new file mode 100644
index 0000000000000000000000000000000000000000..2e1b70e853dba5b463371abf376e6146c09be02b
--- /dev/null
+++ b/chrome/browser/budget_service/budget.proto
@@ -0,0 +1,30 @@
+// Copyright 2016 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 budget_service;
+
+// Chrome requires this.
+option optimize_for = LITE_RUNTIME;
+
+// Next available id: 3
+message Budget {
+ // How much budget the origin needs to accumulate before it will be allowed to
+ // perform another budget action.
+ optional double debt = 1;
+
+ // The sequence of budget chunks and their expiration times.
+ repeated BudgetChunk budget = 2;
+}
+
+// Next available id: 3
+message BudgetChunk {
+ // The amount of budget remaining in this chunk.
+ optional double budget_amount = 1;
+
+ // The timestamp when the budget expires. Format is double to integrate with
Peter Beverloo 2016/06/30 13:12:46 Yes, but what does the `double` contain? Milliseco
harkness 2016/07/01 12:29:54 Done.
+ // Site Engagement.
+ optional double expiration_timestamp = 2;
+}

Powered by Google App Engine
This is Rietveld 408576698