Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: Source/modules/background_sync/SyncEvent.cpp

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remembering how ASCII works Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..448f458b07353426d2e086c1cd1e8a322055d950
--- /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* registration, WaitUntilObserver* observer)
+ : ExtendableEvent(type, ExtendableEventInit(), observer)
+ , m_registration(registration)
+{
+}
+
+SyncEvent::SyncEvent(const AtomicString& type, const SyncEventInit& init)
+ : ExtendableEvent(type, init)
+{
+ m_registration = init.registration();
+}
+
+SyncEvent::~SyncEvent()
+{
+}
+
+const AtomicString& SyncEvent::interfaceName() const
+{
+ return EventNames::SyncEvent;
+}
+
+SyncRegistration* SyncEvent::registration()
+{
+ return m_registration.get();
+}
+
+void SyncEvent::trace(Visitor* visitor)
jkarlin 2015/02/27 20:08:12 DEFINE_TRACE(PushEvent)
iclelland 2015/03/02 03:51:11 Done. (As SyncEvent ;) )
+{
+ visitor->trace(m_registration);
+ ExtendableEvent::trace(visitor);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698