| 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 SyncEvent_h | 5 #ifndef SyncEvent_h |
| 6 #define SyncEvent_h | 6 #define SyncEvent_h |
| 7 | 7 |
| 8 #include "modules/EventModules.h" | 8 #include "modules/EventModules.h" |
| 9 #include "modules/background_sync/SyncEventInit.h" | 9 #include "modules/background_sync/SyncEventInit.h" |
| 10 #include "modules/background_sync/SyncRegistration.h" | 10 #include "modules/background_sync/SyncRegistration.h" |
| 11 #include "modules/serviceworkers/ExtendableEvent.h" | 11 #include "modules/serviceworkers/ExtendableEvent.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "wtf/text/AtomicString.h" | 13 #include "wtf/text/AtomicString.h" |
| 14 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class SyncEvent final : public ExtendableEvent { | 18 class MODULES_EXPORT SyncEvent final : public ExtendableEvent { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 public: | 20 public: |
| 21 static PassRefPtrWillBeRawPtr<SyncEvent> create() | 21 static PassRefPtrWillBeRawPtr<SyncEvent> create() |
| 22 { | 22 { |
| 23 return adoptRefWillBeNoop(new SyncEvent); | 23 return adoptRefWillBeNoop(new SyncEvent); |
| 24 } | 24 } |
| 25 static PassRefPtrWillBeRawPtr<SyncEvent> create(const AtomicString& type, Sy
ncRegistration* syncRegistration, WaitUntilObserver* observer) | 25 static PassRefPtrWillBeRawPtr<SyncEvent> create(const AtomicString& type, Sy
ncRegistration* syncRegistration, WaitUntilObserver* observer) |
| 26 { | 26 { |
| 27 return adoptRefWillBeNoop(new SyncEvent(type, syncRegistration, observer
)); | 27 return adoptRefWillBeNoop(new SyncEvent(type, syncRegistration, observer
)); |
| 28 } | 28 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 43 SyncEvent(); | 43 SyncEvent(); |
| 44 SyncEvent(const AtomicString& type, SyncRegistration*, WaitUntilObserver*); | 44 SyncEvent(const AtomicString& type, SyncRegistration*, WaitUntilObserver*); |
| 45 SyncEvent(const AtomicString& type, const SyncEventInit&); | 45 SyncEvent(const AtomicString& type, const SyncEventInit&); |
| 46 | 46 |
| 47 PersistentWillBeMember<SyncRegistration> m_syncRegistration; | 47 PersistentWillBeMember<SyncRegistration> m_syncRegistration; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // SyncEvent_h | 52 #endif // SyncEvent_h |
| OLD | NEW |