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

Side by Side Diff: third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom

Issue 2231873002: Added budget_service.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@budget_api
Patch Set: 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 | « third_party/WebKit/public/platform/modules/budget_service/OWNERS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/modules/budget_service/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698