OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PeriodicSyncEvent_h |
| 6 #define PeriodicSyncEvent_h |
| 7 |
| 8 #include "modules/EventModules.h" |
| 9 #include "modules/serviceworkers/ExtendableEvent.h" |
| 10 #include "wtf/text/AtomicString.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class PeriodicSyncEventInit; |
| 15 class PeriodicSyncRegistration; |
| 16 |
| 17 class PeriodicSyncEvent final : public ExtendableEvent { |
| 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 public: |
| 20 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create() |
| 21 { |
| 22 return adoptRefWillBeNoop(new PeriodicSyncEvent); |
| 23 } |
| 24 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString&
type, PeriodicSyncRegistration* syncRegistration, WaitUntilObserver* observer) |
| 25 { |
| 26 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, syncRegistration,
observer)); |
| 27 } |
| 28 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString&
type, const PeriodicSyncEventInit& init) |
| 29 { |
| 30 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, init)); |
| 31 } |
| 32 |
| 33 virtual ~PeriodicSyncEvent(); |
| 34 |
| 35 virtual const AtomicString& interfaceName() const override; |
| 36 |
| 37 PeriodicSyncRegistration* registration(); |
| 38 |
| 39 DECLARE_VIRTUAL_TRACE(); |
| 40 |
| 41 private: |
| 42 PeriodicSyncEvent(); |
| 43 PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration*, WaitU
ntilObserver*); |
| 44 PeriodicSyncEvent(const AtomicString& type, const PeriodicSyncEventInit&); |
| 45 |
| 46 PersistentWillBeMember<PeriodicSyncRegistration> m_periodicRegistration; |
| 47 }; |
| 48 |
| 49 } // namespace blink |
| 50 |
| 51 #endif // PeriodicSyncEvent_h |
OLD | NEW |