Пример #1
0
SyncEvent::SyncEvent(const AtomicString& type,
                     const String& tag,
                     bool lastChance,
                     WaitUntilObserver* observer)
    : ExtendableEvent(type, ExtendableEventInit(), observer),
      m_tag(tag),
      m_lastChance(lastChance) {}
Пример #2
0
void ServiceWorkerGlobalScopeProxy::dispatchInstallEvent(int eventID) {
  WaitUntilObserver* observer = WaitUntilObserver::create(
      workerGlobalScope(), WaitUntilObserver::Install, eventID);
  Event* event = InstallEvent::create(EventTypeNames::install,
                                      ExtendableEventInit(), observer);
  workerGlobalScope()->dispatchExtendableEvent(event, observer);
}
Пример #3
0
PeriodicSyncEvent::PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration* periodicRegistration, WaitUntilObserver* observer)
    : ExtendableEvent(type, ExtendableEventInit(), observer)
    , m_periodicRegistration(periodicRegistration)
{
}