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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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/BudgetService.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"
10 #include "core/dom/DOMException.h" 9 #include "core/dom/DOMException.h"
11 #include "core/dom/ExceptionCode.h" 10 #include "core/dom/ExceptionCode.h"
12 #include "core/dom/ExecutionContext.h" 11 #include "core/dom/ExecutionContext.h"
13 #include "modules/budget/BudgetState.h" 12 #include "modules/budget/BudgetState.h"
13 #include "platform/bindings/ScriptState.h"
14 #include "public/platform/InterfaceProvider.h" 14 #include "public/platform/InterfaceProvider.h"
15 #include "public/platform/Platform.h" 15 #include "public/platform/Platform.h"
16 #include "public/platform/modules/budget_service/budget_service.mojom-blink.h" 16 #include "public/platform/modules/budget_service/budget_service.mojom-blink.h"
17 17
18 namespace blink { 18 namespace blink {
19 namespace { 19 namespace {
20 20
21 mojom::blink::BudgetOperationType StringToOperationType( 21 mojom::blink::BudgetOperationType StringToOperationType(
22 const AtomicString& operation) { 22 const AtomicString& operation) {
23 if (operation == "silent-push") 23 if (operation == "silent-push")
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 resolver->Resolve(success); 161 resolver->Resolve(success);
162 } 162 }
163 163
164 void BudgetService::OnConnectionError() { 164 void BudgetService::OnConnectionError() {
165 LOG(ERROR) << "Unable to connect to the Mojo BudgetService."; 165 LOG(ERROR) << "Unable to connect to the Mojo BudgetService.";
166 // TODO(harkness): Reject in flight promises. 166 // TODO(harkness): Reject in flight promises.
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/budget/BudgetService.h ('k') | third_party/WebKit/Source/modules/budget/BudgetState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698