| 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 PaymentRequestUpdateEvent_h | 5 #ifndef PaymentRequestUpdateEvent_h |
| 6 #define PaymentRequestUpdateEvent_h | 6 #define PaymentRequestUpdateEvent_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "core/events/Event.h" | 10 #include "core/events/Event.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 public: | 25 public: |
| 26 ~PaymentRequestUpdateEvent() override; | 26 ~PaymentRequestUpdateEvent() override; |
| 27 | 27 |
| 28 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay
mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); | 28 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay
mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); |
| 29 | 29 |
| 30 void setPaymentDetailsUpdater(PaymentUpdater*); | 30 void setPaymentDetailsUpdater(PaymentUpdater*); |
| 31 | 31 |
| 32 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); | 32 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); |
| 33 | 33 |
| 34 void onTimerFired(TimerBase*); | 34 DECLARE_VIRTUAL_TRACE(); |
| 35 | 35 |
| 36 DECLARE_VIRTUAL_TRACE(); | 36 void onUpdateEventTimeoutForTesting(); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda
teEventInit&); | 39 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda
teEventInit&); |
| 40 | 40 |
| 41 void onUpdateEventTimeout(TimerBase*); |
| 42 |
| 41 Member<PaymentUpdater> m_updater; | 43 Member<PaymentUpdater> m_updater; |
| 42 bool m_waitForUpdate; | 44 bool m_waitForUpdate; |
| 43 Timer<PaymentRequestUpdateEvent> m_abortTimer; | 45 Timer<PaymentRequestUpdateEvent> m_abortTimer; |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 } // namespace blink | 48 } // namespace blink |
| 47 | 49 |
| 48 #endif // PaymentRequestUpdateEvent_h | 50 #endif // PaymentRequestUpdateEvent_h |
| OLD | NEW |