OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 #include "modules/serviceworkers/ServiceWorkerContainer.h" | 30 #include "modules/serviceworkers/ServiceWorkerContainer.h" |
31 | 31 |
32 #include <memory> | 32 #include <memory> |
33 #include <utility> | 33 #include <utility> |
34 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 34 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
35 #include "bindings/core/v8/ScriptPromise.h" | 35 #include "bindings/core/v8/ScriptPromise.h" |
36 #include "bindings/core/v8/ScriptPromiseResolver.h" | 36 #include "bindings/core/v8/ScriptPromiseResolver.h" |
37 #include "bindings/core/v8/V8ThrowException.h" | |
38 #include "bindings/core/v8/serialization/SerializedScriptValue.h" | 37 #include "bindings/core/v8/serialization/SerializedScriptValue.h" |
39 #include "bindings/core/v8/serialization/SerializedScriptValueFactory.h" | 38 #include "bindings/core/v8/serialization/SerializedScriptValueFactory.h" |
40 #include "core/dom/DOMException.h" | 39 #include "core/dom/DOMException.h" |
41 #include "core/dom/Document.h" | 40 #include "core/dom/Document.h" |
42 #include "core/dom/ExceptionCode.h" | 41 #include "core/dom/ExceptionCode.h" |
43 #include "core/dom/ExecutionContext.h" | 42 #include "core/dom/ExecutionContext.h" |
44 #include "core/dom/MessagePort.h" | 43 #include "core/dom/MessagePort.h" |
45 #include "core/events/MessageEvent.h" | 44 #include "core/events/MessageEvent.h" |
46 #include "core/frame/Deprecation.h" | 45 #include "core/frame/Deprecation.h" |
47 #include "core/frame/LocalDOMWindow.h" | 46 #include "core/frame/LocalDOMWindow.h" |
48 #include "core/frame/UseCounter.h" | 47 #include "core/frame/UseCounter.h" |
49 #include "core/frame/csp/ContentSecurityPolicy.h" | 48 #include "core/frame/csp/ContentSecurityPolicy.h" |
50 #include "modules/EventTargetModules.h" | 49 #include "modules/EventTargetModules.h" |
51 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 50 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
52 #include "modules/serviceworkers/ServiceWorker.h" | 51 #include "modules/serviceworkers/ServiceWorker.h" |
53 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" | 52 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" |
54 #include "modules/serviceworkers/ServiceWorkerError.h" | 53 #include "modules/serviceworkers/ServiceWorkerError.h" |
55 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 54 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
56 #include "platform/RuntimeEnabledFeatures.h" | 55 #include "platform/RuntimeEnabledFeatures.h" |
57 #include "platform/bindings/ScriptState.h" | 56 #include "platform/bindings/ScriptState.h" |
| 57 #include "platform/bindings/V8ThrowException.h" |
58 #include "platform/weborigin/SchemeRegistry.h" | 58 #include "platform/weborigin/SchemeRegistry.h" |
59 #include "platform/weborigin/SecurityViolationReportingPolicy.h" | 59 #include "platform/weborigin/SecurityViolationReportingPolicy.h" |
60 #include "platform/wtf/PtrUtil.h" | 60 #include "platform/wtf/PtrUtil.h" |
61 #include "public/platform/WebString.h" | 61 #include "public/platform/WebString.h" |
62 #include "public/platform/WebURL.h" | 62 #include "public/platform/WebURL.h" |
63 #include "public/platform/modules/serviceworker/WebServiceWorker.h" | 63 #include "public/platform/modules/serviceworker/WebServiceWorker.h" |
64 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 64 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
65 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" | 65 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" |
66 | 66 |
67 namespace blink { | 67 namespace blink { |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 486 |
487 if (ServiceWorkerContainerClient* client = | 487 if (ServiceWorkerContainerClient* client = |
488 ServiceWorkerContainerClient::From(execution_context)) { | 488 ServiceWorkerContainerClient::From(execution_context)) { |
489 provider_ = client->Provider(); | 489 provider_ = client->Provider(); |
490 if (provider_) | 490 if (provider_) |
491 provider_->SetClient(this); | 491 provider_->SetClient(this); |
492 } | 492 } |
493 } | 493 } |
494 | 494 |
495 } // namespace blink | 495 } // namespace blink |
OLD | NEW |