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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
diff --git a/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom b/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..0b4fe305af301a9dabf41965580ec6a17fd07632
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module blink.mojom;
+
+enum OperationType {
+ SILENT_PUSH
+};
+
+// Structure representing the budget at points in time in the future.
+struct BudgetState {
+ // Amount of budget that will be available.
+ double budget_at;
+
+ // 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.
+ double time;
+};
+
+// Service through which Blink can query for the cost of particular actions and
+// for the budget available for an origin.
+interface BudgetService {
+ GetCost(OperationType operation) => (double cost);
+ 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.
+};
+
« 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