Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 public: 25 public:
26 ~PaymentRequestUpdateEvent() override; 26 ~PaymentRequestUpdateEvent() override;
27 27
28 static PaymentRequestUpdateEvent* create(); 28 static PaymentRequestUpdateEvent* create();
29 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit()); 29 static PaymentRequestUpdateEvent* create(const AtomicString& type, const Pay mentRequestUpdateEventInit& = PaymentRequestUpdateEventInit());
30 30
31 void setPaymentDetailsUpdater(PaymentUpdater*); 31 void setPaymentDetailsUpdater(PaymentUpdater*);
32 32
33 void updateWith(ScriptState*, ScriptPromise, ExceptionState&); 33 void updateWith(ScriptState*, ScriptPromise, ExceptionState&);
34 34
35 void onTimerFired(Timer<PaymentRequestUpdateEvent>*); 35 void onTimerFired(TimerBase*);
36 36
37 DECLARE_VIRTUAL_TRACE(); 37 DECLARE_VIRTUAL_TRACE();
38 38
39 private: 39 private:
40 PaymentRequestUpdateEvent(); 40 PaymentRequestUpdateEvent();
41 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda teEventInit&); 41 PaymentRequestUpdateEvent(const AtomicString& type, const PaymentRequestUpda teEventInit&);
42 42
43 Member<PaymentUpdater> m_updater; 43 Member<PaymentUpdater> m_updater;
44 bool m_waitForUpdate; 44 bool m_waitForUpdate;
45 Timer<PaymentRequestUpdateEvent> m_abortTimer; 45 Timer<PaymentRequestUpdateEvent> m_abortTimer;
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // PaymentRequestUpdateEvent_h 50 #endif // PaymentRequestUpdateEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698