Index: Source/modules/background_sync/SyncEvent.cpp |
diff --git a/Source/modules/background_sync/SyncEvent.cpp b/Source/modules/background_sync/SyncEvent.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a3dbf8681303934487fbd344750e306d1e05f3bf |
--- /dev/null |
+++ b/Source/modules/background_sync/SyncEvent.cpp |
@@ -0,0 +1,46 @@ |
+// 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. |
+ |
+#include "config.h" |
+#include "modules/background_sync/SyncEvent.h" |
+ |
+namespace blink { |
+ |
+SyncEvent::SyncEvent() |
+{ |
+} |
+ |
+SyncEvent::SyncEvent(const AtomicString& type, SyncRegistration* syncRegistration, WaitUntilObserver* observer) |
+ : ExtendableEvent(type, ExtendableEventInit(), observer) |
+ , m_syncRegistration(syncRegistration) |
+{ |
+} |
+ |
+SyncEvent::SyncEvent(const AtomicString& type, const SyncEventInit& init) |
+ : ExtendableEvent(type, init) |
+{ |
+ m_syncRegistration = init.registration(); |
+} |
+ |
+SyncEvent::~SyncEvent() |
+{ |
+} |
+ |
+const AtomicString& SyncEvent::interfaceName() const |
+{ |
+ return EventNames::SyncEvent; |
+} |
+ |
+SyncRegistration* SyncEvent::registration() |
+{ |
+ return m_syncRegistration.get(); |
+} |
+ |
+DEFINE_TRACE(SyncEvent) |
+{ |
+ visitor->trace(m_syncRegistration); |
+ ExtendableEvent::trace(visitor); |
+} |
+ |
+} // namespace blink |