Index: third_party/WebKit/Source/modules/budget/BudgetService.h |
diff --git a/third_party/WebKit/Source/modules/budget/BudgetService.h b/third_party/WebKit/Source/modules/budget/BudgetService.h |
index 73c0313040c74549a0049b50e20cd3a3767ea833..ae84593fe2e76bdad998da204fc1aea990add434 100644 |
--- a/third_party/WebKit/Source/modules/budget/BudgetService.h |
+++ b/third_party/WebKit/Source/modules/budget/BudgetService.h |
@@ -30,15 +30,17 @@ public: |
~BudgetService(); |
// Implementation of the Budget API interface. |
- ScriptPromise getCost(ScriptState*, const AtomicString& actionType); |
+ ScriptPromise getCost(ScriptState*, const AtomicString& operation); |
ScriptPromise getBudget(ScriptState*); |
+ ScriptPromise reserve(ScriptState*, const AtomicString& operation); |
DEFINE_INLINE_TRACE() {} |
private: |
// Callbacks from the BudgetService to the blink layer. |
void gotCost(ScriptPromiseResolver*, double cost) const; |
- void gotBudget(ScriptPromiseResolver*, const mojo::WTFArray<mojom::blink::BudgetStatePtr> expectations) const; |
+ void gotBudget(ScriptPromiseResolver*, mojom::blink::BudgetServiceErrorType, const mojo::WTFArray<mojom::blink::BudgetStatePtr> expectations) const; |
+ void gotReservation(ScriptPromiseResolver*, mojom::blink::BudgetServiceErrorType, bool success) const; |
// Error handler for use if mojo service doesn't connect. |
void onConnectionError(); |