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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/payments/PaymentInstruments.h" 5 #include "modules/payments/PaymentInstruments.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptPromise.h" 10 #include "bindings/core/v8/ScriptPromise.h"
11 #include "bindings/core/v8/ScriptPromiseResolver.h" 11 #include "bindings/core/v8/ScriptPromiseResolver.h"
12 #include "bindings/core/v8/V8Binding.h" 12 #include "bindings/core/v8/V8BindingForCore.h"
13 #include "core/dom/DOMException.h" 13 #include "core/dom/DOMException.h"
14 #include "modules/payments/PaymentInstrument.h" 14 #include "modules/payments/PaymentInstrument.h"
15 #include "modules/payments/PaymentManager.h" 15 #include "modules/payments/PaymentManager.h"
16 #include "platform/wtf/Vector.h" 16 #include "platform/wtf/Vector.h"
17 17
18 namespace blink { 18 namespace blink {
19 namespace { 19 namespace {
20 20
21 static const char kPaymentManagerUnavailable[] = "Payment manager unavailable"; 21 static const char kPaymentManagerUnavailable[] = "Payment manager unavailable";
22 22
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void PaymentInstruments::onSetPaymentInstrument( 166 void PaymentInstruments::onSetPaymentInstrument(
167 ScriptPromiseResolver* resolver, 167 ScriptPromiseResolver* resolver,
168 payments::mojom::blink::PaymentHandlerStatus status) { 168 payments::mojom::blink::PaymentHandlerStatus status) {
169 DCHECK(resolver); 169 DCHECK(resolver);
170 if (rejectError(resolver, status)) 170 if (rejectError(resolver, status))
171 return; 171 return;
172 resolver->Resolve(); 172 resolver->Resolve();
173 } 173 }
174 174
175 } // namespace blink 175 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698