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.
|
+}; |
+ |