| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void onCompleteTimeoutForTesting(); | 88 void onCompleteTimeoutForTesting(); |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 PaymentRequest(Document&, | 91 PaymentRequest(Document&, |
| 92 const HeapVector<PaymentMethodData>&, | 92 const HeapVector<PaymentMethodData>&, |
| 93 const PaymentDetails&, | 93 const PaymentDetails&, |
| 94 const PaymentOptions&, | 94 const PaymentOptions&, |
| 95 ExceptionState&); | 95 ExceptionState&); |
| 96 | 96 |
| 97 // LifecycleObserver: | 97 // LifecycleObserver: |
| 98 void contextDestroyed() override; | 98 void contextDestroyed(ExecutionContext*) override; |
| 99 | 99 |
| 100 // payments::mojom::blink::PaymentRequestClient: | 100 // payments::mojom::blink::PaymentRequestClient: |
| 101 void OnShippingAddressChange( | 101 void OnShippingAddressChange( |
| 102 payments::mojom::blink::PaymentAddressPtr) override; | 102 payments::mojom::blink::PaymentAddressPtr) override; |
| 103 void OnShippingOptionChange(const String& shippingOptionId) override; | 103 void OnShippingOptionChange(const String& shippingOptionId) override; |
| 104 void OnPaymentResponse(payments::mojom::blink::PaymentResponsePtr) override; | 104 void OnPaymentResponse(payments::mojom::blink::PaymentResponsePtr) override; |
| 105 void OnError(payments::mojom::blink::PaymentErrorReason) override; | 105 void OnError(payments::mojom::blink::PaymentErrorReason) override; |
| 106 void OnComplete() override; | 106 void OnComplete() override; |
| 107 void OnAbort(bool abortedSuccessfully) override; | 107 void OnAbort(bool abortedSuccessfully) override; |
| 108 void OnCanMakePayment( | 108 void OnCanMakePayment( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 122 Member<ScriptPromiseResolver> m_abortResolver; | 122 Member<ScriptPromiseResolver> m_abortResolver; |
| 123 Member<ScriptPromiseResolver> m_canMakePaymentResolver; | 123 Member<ScriptPromiseResolver> m_canMakePaymentResolver; |
| 124 payments::mojom::blink::PaymentRequestPtr m_paymentProvider; | 124 payments::mojom::blink::PaymentRequestPtr m_paymentProvider; |
| 125 mojo::Binding<payments::mojom::blink::PaymentRequestClient> m_clientBinding; | 125 mojo::Binding<payments::mojom::blink::PaymentRequestClient> m_clientBinding; |
| 126 Timer<PaymentRequest> m_completeTimer; | 126 Timer<PaymentRequest> m_completeTimer; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace blink | 129 } // namespace blink |
| 130 | 130 |
| 131 #endif // PaymentRequest_h | 131 #endif // PaymentRequest_h |
| OLD | NEW |