| OLD | NEW |
| 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 #ifndef PaymentRequest_h | 5 #ifndef PaymentRequest_h |
| 6 #define PaymentRequest_h | 6 #define PaymentRequest_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "wtf/Vector.h" | 22 #include "wtf/Vector.h" |
| 23 #include "wtf/text/WTFString.h" | 23 #include "wtf/text/WTFString.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 class ExceptionState; | 27 class ExceptionState; |
| 28 class ScriptPromiseResolver; | 28 class ScriptPromiseResolver; |
| 29 class ScriptState; | 29 class ScriptState; |
| 30 class ShippingAddress; | 30 class ShippingAddress; |
| 31 | 31 |
| 32 class MODULES_EXPORT PaymentRequest final : public RefCountedGarbageCollectedEve
ntTargetWithInlineData<PaymentRequest>, WTF_NON_EXPORTED_BASE(public mojom::wtf:
:PaymentRequestClient), public PaymentCompleter { | 32 class MODULES_EXPORT PaymentRequest final : public EventTargetWithInlineData, WT
F_NON_EXPORTED_BASE(public mojom::wtf::PaymentRequestClient), public PaymentComp
leter { |
| 33 DEFINE_WRAPPERTYPEINFO(); | 33 DEFINE_WRAPPERTYPEINFO(); |
| 34 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PaymentRequest); | 34 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PaymentRequest); |
| 35 USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest) | 35 USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest) |
| 36 WTF_MAKE_NONCOPYABLE(PaymentRequest); | 36 WTF_MAKE_NONCOPYABLE(PaymentRequest); |
| 37 | 37 |
| 38 public: | 38 public: |
| 39 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, ExceptionState&); | 39 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, ExceptionState&); |
| 40 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, const PaymentOptions&, ExceptionState&); | 40 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, const PaymentOptions&, ExceptionState&); |
| 41 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E
xceptionState&); | 41 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E
xceptionState&); |
| 42 | 42 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 String m_shippingOption; | 82 String m_shippingOption; |
| 83 Member<ScriptPromiseResolver> m_showResolver; | 83 Member<ScriptPromiseResolver> m_showResolver; |
| 84 Member<ScriptPromiseResolver> m_completeResolver; | 84 Member<ScriptPromiseResolver> m_completeResolver; |
| 85 mojom::wtf::PaymentRequestPtr m_paymentProvider; | 85 mojom::wtf::PaymentRequestPtr m_paymentProvider; |
| 86 mojo::Binding<mojom::wtf::PaymentRequestClient> m_clientBinding; | 86 mojo::Binding<mojom::wtf::PaymentRequestClient> m_clientBinding; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // PaymentRequest_h | 91 #endif // PaymentRequest_h |
| OLD | NEW |