OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 syntax = "proto2"; | |
6 | |
7 package chrome_browser_budget_service; | |
Peter Beverloo
2016/06/29 13:37:27
package budget_service;
harkness
2016/06/30 10:41:57
I much prefer that, but it's not the pattern I see
| |
8 | |
9 // Chrome requires this. | |
Peter Beverloo
2016/06/29 13:37:27
What is the added value of this comment?
harkness
2016/06/30 10:41:57
The first proto I looked at didn't have the commen
| |
10 option optimize_for = LITE_RUNTIME; | |
11 | |
12 // Description of budget chuks. | |
Peter Beverloo
2016/06/29 13:37:27
Please annotate messages with the next available I
Peter Beverloo
2016/06/29 13:37:27
What is the added value of this comment?
harkness
2016/06/30 10:41:57
Done.
harkness
2016/06/30 10:41:57
That was commenting v1, deprecated by v2, but I fo
| |
13 message Budget { | |
14 // How much budget the origin needs to accumulate before it will be allowed to | |
15 // perform another budget action. | |
16 optional double debt = 1; | |
17 | |
18 // The sequence of budget chunks and their expiration times. | |
19 repeated BudgetChunk budget = 2; | |
20 } | |
21 | |
22 message BudgetChunk { | |
23 // The amount of budget remaining in this chunk. | |
24 optional double budget_amount = 1; | |
25 | |
26 // The timestamp when the budget expires. | |
Peter Beverloo
2016/06/29 13:37:27
It would be good to document what format the times
harkness
2016/06/30 10:41:57
Added a comment. I think I'm going to want to chan
| |
27 optional double expiration_timestamp = 2; | |
28 } | |
OLD | NEW |