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

Unified Diff: third_party/WebKit/Source/modules/budget/BudgetService.idl

Issue 2309863002: Plumb reserve method of the BudgetAPI (Closed)
Patch Set: Rename BudgetServiceErrorType::NO_ERROR to ::NONE to avoid Windows constant name clash. Created 4 years, 3 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
Index: third_party/WebKit/Source/modules/budget/BudgetService.idl
diff --git a/third_party/WebKit/Source/modules/budget/BudgetService.idl b/third_party/WebKit/Source/modules/budget/BudgetService.idl
index ce186a719ea2cc9919b9b0af0849c31eac3f2258..4fa8f3ffe2ce15960637d4e2ef35662df9674a3e 100644
--- a/third_party/WebKit/Source/modules/budget/BudgetService.idl
+++ b/third_party/WebKit/Source/modules/budget/BudgetService.idl
@@ -5,13 +5,14 @@
// https://beverloo.github.io/budget-api/#budget-service-interface
// TODO(harkness): Link WICG spec when it exists.
-enum ActionType {
+enum OperationType {
"silent-push"
};
[
RuntimeEnabled=Budget
] interface BudgetService {
- [CallWith=ScriptState] Promise<double> getCost(ActionType actionType);
+ [CallWith=ScriptState] Promise<double> getCost(OperationType operation);
[CallWith=ScriptState] Promise<FrozenArray<BudgetState>> getBudget();
+ [CallWith=ScriptState] Promise<boolean> reserve(OperationType operation);
};

Powered by Google App Engine
This is Rietveld 408576698