Chromium Code Reviews| 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 |