Chromium Code Reviews| 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 budget_service; | |
| 8 | |
| 9 // Chrome requires this. | |
| 10 option optimize_for = LITE_RUNTIME; | |
| 11 | |
| 12 // Next available id: 3 | |
| 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 // Next available id: 3 | |
| 23 message BudgetChunk { | |
| 24 // The amount of budget remaining in this chunk. | |
| 25 optional double budget_amount = 1; | |
| 26 | |
| 27 // 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.
| |
| 28 // Site Engagement. | |
| 29 optional double expiration_timestamp = 2; | |
| 30 } | |
| OLD | NEW |