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

Side by Side Diff: third_party/WebKit/Source/modules/budget/BudgetService.cpp

Issue 2229283003: Convert Budget to BudgetService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated global interface list Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/budget/Budget.h" 5 #include "modules/budget/BudgetService.h"
6 6
7 #include "bindings/core/v8/ScriptPromise.h" 7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
11 #include "core/dom/ExceptionCode.h" 11 #include "core/dom/ExceptionCode.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 Budget::Budget() {} 15 BudgetService::BudgetService() {}
16 16
17 ScriptPromise Budget::getCost(ScriptState* scriptState, const AtomicString& acti onType) 17 ScriptPromise BudgetService::getCost(ScriptState* scriptState, const AtomicStrin g& actionType)
18 { 18 {
19 // TODO(harkness): Trigger the cost calculation. 19 // TODO(harkness): Trigger the cost calculation.
20 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "Not yet implemented")); 20 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "Not yet implemented"));
21 } 21 }
22 22
23 ScriptPromise Budget::getBudget(ScriptState* scriptState) 23 ScriptPromise BudgetService::getBudget(ScriptState* scriptState)
24 { 24 {
25 // TODO(harkness): Trigger the budget calculation. 25 // TODO(harkness): Trigger the budget calculation.
26 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "Not yet implemented")); 26 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "Not yet implemented"));
27 } 27 }
28 28
29 } // namespace blink 29 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/budget/BudgetService.h ('k') | third_party/WebKit/Source/modules/budget/BudgetService.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698