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

Side by Side Diff: chrome/browser/budget_service/budget.proto

Issue 2173833002: Expand the functionality of the BudgetDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final cleanup Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/budget_service/budget_database.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 package budget_service; 7 package budget_service;
8 8
9 // Chrome requires this. 9 // Chrome requires this.
10 option optimize_for = LITE_RUNTIME; 10 option optimize_for = LITE_RUNTIME;
11 11
12 // Next available id: 3 12 // Next available id: 3
13 message Budget { 13 message Budget {
14 // How much budget the origin needs to accumulate before it will be allowed to 14 // How much budget the origin needs to accumulate before it will be allowed to
15 // perform another budget action. 15 // perform another budget action.
16 optional double debt = 1; 16 optional double debt = 1;
17 17
18 // The sequence of budget chunks and their expiration times. 18 // The sequence of budget chunks and their expiration times.
19 repeated BudgetChunk budget = 2; 19 repeated BudgetChunk budget = 2;
20 } 20 }
21 21
22 // Next available id: 3 22 // Next available id: 3
23 message BudgetChunk { 23 message BudgetChunk {
24 // The amount of budget remaining in this chunk. 24 // The amount of budget remaining in this chunk.
25 optional double budget_amount = 1; 25 optional double amount = 1;
26 26
27 // The timestamp when the budget expires. Format is double to integrate with 27 // The timestamp when the budget expires. Format is double to integrate with
28 // Site Engagement and Blink and is the number of seconds since Jan 1, 1970. 28 // Site Engagement and Blink and is the number of seconds since Jan 1, 1970.
29 optional double expiration_timestamp = 2; 29 optional double expiration = 2;
30 } 30 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/budget_service/budget_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698