| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "ServiceWorkerRegistration.h" | 6 #include "ServiceWorkerRegistration.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 8 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 10 #include "bindings/core/v8/ScriptPromiseResolver.h" | 10 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 11 #include "bindings/core/v8/ScriptState.h" | 11 #include "bindings/core/v8/ScriptState.h" |
| 12 #include "core/dom/DOMException.h" | 12 #include "core/dom/DOMException.h" |
| 13 #include "core/dom/ExceptionCode.h" | 13 #include "core/dom/ExceptionCode.h" |
| 14 #include "core/dom/ExecutionContext.h" | 14 #include "core/dom/ExecutionContext.h" |
| 15 #include "core/events/Event.h" | 15 #include "core/events/Event.h" |
| 16 #include "modules/EventTargetModules.h" | 16 #include "modules/EventTargetModules.h" |
| 17 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" | 17 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" |
| 18 #include "modules/serviceworkers/ServiceWorkerError.h" | 18 #include "modules/serviceworkers/ServiceWorkerError.h" |
| 19 #include "public/platform/WebServiceWorkerProvider.h" | 19 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 static void deleteIfNoExistingOwner(WebServiceWorker* serviceWorker) | 23 static void deleteIfNoExistingOwner(WebServiceWorker* serviceWorker) |
| 24 { | 24 { |
| 25 if (serviceWorker && !serviceWorker->proxy()) | 25 if (serviceWorker && !serviceWorker->proxy()) |
| 26 delete serviceWorker; | 26 delete serviceWorker; |
| 27 } | 27 } |
| 28 | 28 |
| 29 const AtomicString& ServiceWorkerRegistration::interfaceName() const | 29 const AtomicString& ServiceWorkerRegistration::interfaceName() const |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 void ServiceWorkerRegistration::stop() | 167 void ServiceWorkerRegistration::stop() |
| 168 { | 168 { |
| 169 if (m_stopped) | 169 if (m_stopped) |
| 170 return; | 170 return; |
| 171 m_stopped = true; | 171 m_stopped = true; |
| 172 m_outerRegistration->proxyStopped(); | 172 m_outerRegistration->proxyStopped(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace blink | 175 } // namespace blink |
| OLD | NEW |