| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 void OnPaymentResponse(mojom::blink::PaymentResponsePtr) override; | 90 void OnPaymentResponse(mojom::blink::PaymentResponsePtr) override; |
| 91 void OnError(mojom::blink::PaymentErrorReason) override; | 91 void OnError(mojom::blink::PaymentErrorReason) override; |
| 92 void OnComplete() override; | 92 void OnComplete() override; |
| 93 void OnAbort(bool abortedSuccessfully) override; | 93 void OnAbort(bool abortedSuccessfully) override; |
| 94 | 94 |
| 95 void onCompleteTimeout(TimerBase*); | 95 void onCompleteTimeout(TimerBase*); |
| 96 | 96 |
| 97 // Clears the promise resolvers and closes the Mojo connection. | 97 // Clears the promise resolvers and closes the Mojo connection. |
| 98 void clearResolversAndCloseMojoConnection(); | 98 void clearResolversAndCloseMojoConnection(); |
| 99 | 99 |
| 100 Vector<MethodData> m_methodData; | |
| 101 PaymentDetails m_details; | |
| 102 PaymentOptions m_options; | 100 PaymentOptions m_options; |
| 103 Member<PaymentAddress> m_shippingAddress; | 101 Member<PaymentAddress> m_shippingAddress; |
| 104 String m_shippingOption; | 102 String m_shippingOption; |
| 105 Member<ScriptPromiseResolver> m_showResolver; | 103 Member<ScriptPromiseResolver> m_showResolver; |
| 106 Member<ScriptPromiseResolver> m_completeResolver; | 104 Member<ScriptPromiseResolver> m_completeResolver; |
| 107 Member<ScriptPromiseResolver> m_abortResolver; | 105 Member<ScriptPromiseResolver> m_abortResolver; |
| 108 mojom::blink::PaymentRequestPtr m_paymentProvider; | 106 mojom::blink::PaymentRequestPtr m_paymentProvider; |
| 109 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; | 107 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; |
| 110 Timer<PaymentRequest> m_completeTimer; | 108 Timer<PaymentRequest> m_completeTimer; |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 } // namespace blink | 111 } // namespace blink |
| 114 | 112 |
| 115 #endif // PaymentRequest_h | 113 #endif // PaymentRequest_h |
| OLD | NEW |