OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 PeriodicSyncEvent_h | 5 #ifndef PeriodicSyncEvent_h |
6 #define PeriodicSyncEvent_h | 6 #define PeriodicSyncEvent_h |
7 | 7 |
8 #include "modules/EventModules.h" | 8 #include "modules/EventModules.h" |
9 #include "modules/serviceworkers/ExtendableEvent.h" | 9 #include "modules/serviceworkers/ExtendableEvent.h" |
10 #include "wtf/text/AtomicString.h" | 10 #include "wtf/text/AtomicString.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString&
type, PeriodicSyncRegistration* syncRegistration, WaitUntilObserver* observer) | 24 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString&
type, PeriodicSyncRegistration* syncRegistration, WaitUntilObserver* observer) |
25 { | 25 { |
26 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, syncRegistration,
observer)); | 26 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, syncRegistration,
observer)); |
27 } | 27 } |
28 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString&
type, const PeriodicSyncEventInit& init) | 28 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString&
type, const PeriodicSyncEventInit& init) |
29 { | 29 { |
30 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, init)); | 30 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, init)); |
31 } | 31 } |
32 | 32 |
33 virtual ~PeriodicSyncEvent(); | 33 ~PeriodicSyncEvent() override; |
34 | 34 |
35 virtual const AtomicString& interfaceName() const override; | 35 const AtomicString& interfaceName() const override; |
36 | 36 |
37 PeriodicSyncRegistration* registration(); | 37 PeriodicSyncRegistration* registration(); |
38 | 38 |
39 DECLARE_VIRTUAL_TRACE(); | 39 DECLARE_VIRTUAL_TRACE(); |
40 | 40 |
41 private: | 41 private: |
42 PeriodicSyncEvent(); | 42 PeriodicSyncEvent(); |
43 PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration*, WaitU
ntilObserver*); | 43 PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration*, WaitU
ntilObserver*); |
44 PeriodicSyncEvent(const AtomicString& type, const PeriodicSyncEventInit&); | 44 PeriodicSyncEvent(const AtomicString& type, const PeriodicSyncEventInit&); |
45 | 45 |
46 PersistentWillBeMember<PeriodicSyncRegistration> m_periodicRegistration; | 46 PersistentWillBeMember<PeriodicSyncRegistration> m_periodicRegistration; |
47 }; | 47 }; |
48 | 48 |
49 } // namespace blink | 49 } // namespace blink |
50 | 50 |
51 #endif // PeriodicSyncEvent_h | 51 #endif // PeriodicSyncEvent_h |
OLD | NEW |