Chromium Code Reviews| 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 #include "core/frame/Navigator.h" | |
|
Peter Beverloo
2016/08/05 14:33:19
nit: unused
harkness
2016/08/08 12:07:36
Done.
| |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 Budget::Budget() {} | |
| 17 | |
| 18 ScriptPromise Budget::getCost(ScriptState* state, const AtomicString& actionType ) | |
|
haraken
2016/08/08 01:48:13
state => scriptState (we normally use scriptState
harkness
2016/08/08 12:07:36
Done.
| |
| 19 { | |
| 20 // TODO(harkness): Trigger the cost calculation. | |
| 21 return ScriptPromise::rejectWithDOMException(state, DOMException::create(Not SupportedError, "Not yet implemented")); | |
| 22 } | |
| 23 | |
| 24 ScriptPromise Budget::getBudget(ScriptState* state) | |
|
haraken
2016/08/08 01:48:13
state => scriptState
harkness
2016/08/08 12:07:36
Done.
| |
| 25 { | |
| 26 // TODO(harkness): Trigger the budget calculation. | |
| 27 return ScriptPromise::rejectWithDOMException(state, DOMException::create(Not SupportedError, "Not yet implemented")); | |
| 28 } | |
| 29 | |
| 30 DEFINE_TRACE(Budget) | |
|
Peter Beverloo
2016/08/05 14:33:19
nit: Since it's empty, you could drop this and swa
harkness
2016/08/08 12:07:36
Done.
| |
| 31 { | |
| 32 } | |
| 33 | |
| 34 } // namespace blink | |
| OLD | NEW |