Home | History | Annotate | Download | only in serviceworkers

Lines Matching refs:executionContext

40 #include "core/dom/ExecutionContext.h"
68 else if (m_resolver->executionContext() && !m_resolver->executionContext()->activeDOMObjectsAreStopped())
78 ServiceWorkerContainer* ServiceWorkerContainer::create(ExecutionContext* executionContext)
80 return new ServiceWorkerContainer(executionContext);
116 ExecutionContext* executionContext = scriptState->executionContext();
117 RefPtr<SecurityOrigin> documentOrigin = executionContext->securityOrigin();
124 KURL patternURL = executionContext->completeURL(options.scope());
131 KURL scriptURL = executionContext->completeURL(url);
164 ExecutionContext* executionContext = scriptState->executionContext();
165 RefPtr<SecurityOrigin> documentOrigin = executionContext->securityOrigin();
172 KURL completedURL = executionContext->completeURL(documentURL);
184 return new ReadyProperty(executionContext(), this, ReadyProperty::Ready);
189 if (!executionContext())
218 if (!executionContext()) {
222 m_controller = ServiceWorker::from(executionContext(), serviceWorker);
227 if (!executionContext()) {
232 ServiceWorkerRegistration* readyRegistration = ServiceWorkerRegistration::from(executionContext(), registration);
247 if (!executionContext() || !executionContext()->executingWindow())
250 OwnPtrWillBeRawPtr<MessagePortArray> ports = MessagePort::toMessagePortArray(executionContext(), webChannels);
252 executionContext()->executingWindow()->dispatchEvent(MessageEvent::create(ports.release(), value));
255 ServiceWorkerContainer::ServiceWorkerContainer(ExecutionContext* executionContext)
256 : ContextLifecycleObserver(executionContext)
260 if (!executionContext)
265 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::from(executionContext)) {