| 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 13 matching lines...) Expand all Loading... |
| 24 #include "wtf/Vector.h" | 24 #include "wtf/Vector.h" |
| 25 #include "wtf/text/WTFString.h" | 25 #include "wtf/text/WTFString.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 class ExceptionState; | 29 class ExceptionState; |
| 30 class ScriptPromiseResolver; | 30 class ScriptPromiseResolver; |
| 31 class ScriptState; | 31 class ScriptState; |
| 32 class ShippingAddress; | 32 class ShippingAddress; |
| 33 | 33 |
| 34 // TODO(thakis): Make this class final again once https://crbug.com/608705 is fi
xed. | 34 class MODULES_EXPORT PaymentRequest final : public EventTargetWithInlineData, WT
F_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public PaymentCo
mpleter, public PaymentUpdater, public ContextLifecycleObserver { |
| 35 class MODULES_EXPORT PaymentRequest /* final */ : public EventTargetWithInlineDa
ta, WTF_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public Pay
mentCompleter, public PaymentUpdater, public ContextLifecycleObserver { | |
| 36 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
| 37 USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest) | 36 USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest) |
| 38 WTF_MAKE_NONCOPYABLE(PaymentRequest); | 37 WTF_MAKE_NONCOPYABLE(PaymentRequest); |
| 39 | 38 |
| 40 public: | 39 public: |
| 41 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, ExceptionState&); | 40 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, ExceptionState&); |
| 42 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&, ExceptionState&); |
| 43 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E
xceptionState&); | 42 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM
ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E
xceptionState&); |
| 44 | 43 |
| 45 virtual ~PaymentRequest(); | 44 virtual ~PaymentRequest(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 String m_shippingOption; | 88 String m_shippingOption; |
| 90 Member<ScriptPromiseResolver> m_showResolver; | 89 Member<ScriptPromiseResolver> m_showResolver; |
| 91 Member<ScriptPromiseResolver> m_completeResolver; | 90 Member<ScriptPromiseResolver> m_completeResolver; |
| 92 mojom::blink::PaymentRequestPtr m_paymentProvider; | 91 mojom::blink::PaymentRequestPtr m_paymentProvider; |
| 93 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; | 92 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace blink | 95 } // namespace blink |
| 97 | 96 |
| 98 #endif // PaymentRequest_h | 97 #endif // PaymentRequest_h |
| OLD | NEW |