OLD | NEW |
| (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 #include "modules/budget/Budget.h" | |
6 | |
7 #include "bindings/core/v8/ScriptPromise.h" | |
8 #include "bindings/core/v8/ScriptPromiseResolver.h" | |
9 #include "bindings/core/v8/ScriptState.h" | |
10 #include "core/dom/DOMException.h" | |
11 #include "core/dom/ExceptionCode.h" | |
12 | |
13 namespace blink { | |
14 | |
15 Budget::Budget() {} | |
16 | |
17 ScriptPromise Budget::getCost(ScriptState* scriptState, const AtomicString& acti
onType) | |
18 { | |
19 // TODO(harkness): Trigger the cost calculation. | |
20 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError, "Not yet implemented")); | |
21 } | |
22 | |
23 ScriptPromise Budget::getBudget(ScriptState* scriptState) | |
24 { | |
25 // TODO(harkness): Trigger the budget calculation. | |
26 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError, "Not yet implemented")); | |
27 } | |
28 | |
29 } // namespace blink | |
OLD | NEW |