Index: Source/modules/background_sync/PeriodicSyncEvent.h |
diff --git a/Source/modules/background_sync/PeriodicSyncEvent.h b/Source/modules/background_sync/PeriodicSyncEvent.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b09d92546e41c93cc06e9c163ad99883840f9f44 |
--- /dev/null |
+++ b/Source/modules/background_sync/PeriodicSyncEvent.h |
@@ -0,0 +1,52 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PeriodicSyncEvent_h |
+#define PeriodicSyncEvent_h |
+ |
+#include "modules/EventModules.h" |
+#include "modules/background_sync/PeriodicSyncEventInit.h" |
jkarlin
2015/04/17 19:04:49
forward declare instead?
iclelland
2015/04/22 14:05:10
Done.
|
+#include "modules/background_sync/PeriodicSyncRegistration.h" |
jkarlin
2015/04/17 19:04:49
ditto
iclelland
2015/04/22 14:05:10
Done.
|
+#include "modules/serviceworkers/ExtendableEvent.h" |
+#include "platform/heap/Handle.h" |
jkarlin
2015/04/17 19:04:49
unused?
iclelland
2015/04/22 14:05:10
Done.
|
+#include "wtf/text/AtomicString.h" |
+#include "wtf/text/WTFString.h" |
jkarlin
2015/04/17 19:04:49
unused?
iclelland
2015/04/22 14:05:10
Done.
|
+ |
+namespace blink { |
+ |
+class PeriodicSyncEvent final : public ExtendableEvent { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create() |
+ { |
+ return adoptRefWillBeNoop(new PeriodicSyncEvent); |
+ } |
+ static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString& type, PeriodicSyncRegistration* syncRegistration, WaitUntilObserver* observer) |
+ { |
+ return adoptRefWillBeNoop(new PeriodicSyncEvent(type, syncRegistration, observer)); |
+ } |
+ static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString& type, const PeriodicSyncEventInit& init) |
+ { |
+ return adoptRefWillBeNoop(new PeriodicSyncEvent(type, init)); |
+ } |
+ |
+ virtual ~PeriodicSyncEvent(); |
+ |
+ virtual const AtomicString& interfaceName() const override; |
+ |
+ PeriodicSyncRegistration* registration(); |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ PeriodicSyncEvent(); |
+ PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration*, WaitUntilObserver*); |
+ PeriodicSyncEvent(const AtomicString& type, const PeriodicSyncEventInit&); |
+ |
+ PersistentWillBeMember<PeriodicSyncRegistration> m_syncRegistration; |
jkarlin
2015/04/17 19:04:49
perhaps m_periodicRegistration?
iclelland
2015/04/22 14:05:10
Sure. Done.
|
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PeriodicSyncEvent_h |