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 module blink.mojom; | |
6 | |
7 enum OperationType { | |
8 SILENT_PUSH | |
9 }; | |
10 | |
11 // Structure representing the budget at points in time in the future. | |
12 struct BudgetState { | |
13 // Amount of budget that will be available. | |
14 double budget_at; | |
15 | |
16 // Time at which the budget is available. | |
Peter Beverloo
2016/08/10 16:53:31
Please define what sort of value the double contai
harkness
2016/08/15 01:06:39
updated.
| |
17 double time; | |
18 }; | |
19 | |
20 // Service through which Blink can query for the cost of particular actions and | |
21 // for the budget available for an origin. | |
22 interface BudgetService { | |
23 GetCost(OperationType operation) => (double cost); | |
24 GetBudget(string origin) => (array<BudgetState> budget); | |
Peter Beverloo
2016/08/10 16:53:30
Please use url.mojom.Origin
harkness
2016/08/15 01:06:39
Done.
| |
25 }; | |
26 | |
OLD | NEW |