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 17 matching lines...) Expand all Loading... |
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 | 30 |
31 #include "web/WebEmbeddedWorkerImpl.h" | 31 #include "web/WebEmbeddedWorkerImpl.h" |
32 | 32 |
33 #include <memory> | 33 #include <memory> |
34 #include "bindings/core/v8/SourceLocation.h" | 34 #include "bindings/core/v8/SourceLocation.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/SecurityContext.h" | 36 #include "core/dom/SecurityContext.h" |
37 #include "core/dom/TaskRunnerHelper.h" | 37 #include "core/dom/TaskRunnerHelper.h" |
| 38 #include "core/exported/WebDataSourceImpl.h" |
38 #include "core/frame/csp/ContentSecurityPolicy.h" | 39 #include "core/frame/csp/ContentSecurityPolicy.h" |
39 #include "core/inspector/ConsoleMessage.h" | 40 #include "core/inspector/ConsoleMessage.h" |
40 #include "core/loader/FrameLoadRequest.h" | 41 #include "core/loader/FrameLoadRequest.h" |
41 #include "core/loader/ThreadableLoadingContext.h" | 42 #include "core/loader/ThreadableLoadingContext.h" |
42 #include "core/probe/CoreProbes.h" | 43 #include "core/probe/CoreProbes.h" |
43 #include "core/workers/ParentFrameTaskRunners.h" | 44 #include "core/workers/ParentFrameTaskRunners.h" |
44 #include "core/workers/WorkerClients.h" | 45 #include "core/workers/WorkerClients.h" |
45 #include "core/workers/WorkerContentSettingsClient.h" | 46 #include "core/workers/WorkerContentSettingsClient.h" |
46 #include "core/workers/WorkerGlobalScope.h" | 47 #include "core/workers/WorkerGlobalScope.h" |
47 #include "core/workers/WorkerInspectorProxy.h" | 48 #include "core/workers/WorkerInspectorProxy.h" |
(...skipping 18 matching lines...) Expand all Loading... |
66 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 67 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
67 #include "public/web/WebConsoleMessage.h" | 68 #include "public/web/WebConsoleMessage.h" |
68 #include "public/web/WebDevToolsAgent.h" | 69 #include "public/web/WebDevToolsAgent.h" |
69 #include "public/web/WebSettings.h" | 70 #include "public/web/WebSettings.h" |
70 #include "public/web/WebView.h" | 71 #include "public/web/WebView.h" |
71 #include "public/web/WebWorkerContentSettingsClientProxy.h" | 72 #include "public/web/WebWorkerContentSettingsClientProxy.h" |
72 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" | 73 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" |
73 #include "web/IndexedDBClientImpl.h" | 74 #include "web/IndexedDBClientImpl.h" |
74 #include "web/ServiceWorkerGlobalScopeClientImpl.h" | 75 #include "web/ServiceWorkerGlobalScopeClientImpl.h" |
75 #include "web/ServiceWorkerGlobalScopeProxy.h" | 76 #include "web/ServiceWorkerGlobalScopeProxy.h" |
76 #include "web/WebDataSourceImpl.h" | |
77 #include "web/WebLocalFrameImpl.h" | 77 #include "web/WebLocalFrameImpl.h" |
78 | 78 |
79 namespace blink { | 79 namespace blink { |
80 | 80 |
81 WebEmbeddedWorker* WebEmbeddedWorker::Create( | 81 WebEmbeddedWorker* WebEmbeddedWorker::Create( |
82 WebServiceWorkerContextClient* client, | 82 WebServiceWorkerContextClient* client, |
83 WebWorkerContentSettingsClientProxy* content_settings_client) { | 83 WebWorkerContentSettingsClientProxy* content_settings_client) { |
84 return new WebEmbeddedWorkerImpl(WTF::WrapUnique(client), | 84 return new WebEmbeddedWorkerImpl(WTF::WrapUnique(client), |
85 WTF::WrapUnique(content_settings_client)); | 85 WTF::WrapUnique(content_settings_client)); |
86 } | 86 } |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 // populate the task runners with null document not to confuse the frame | 462 // populate the task runners with null document not to confuse the frame |
463 // scheduler (which will end up using the thread's default task runner). | 463 // scheduler (which will end up using the thread's default task runner). |
464 worker_thread_->Start(std::move(startup_data), | 464 worker_thread_->Start(std::move(startup_data), |
465 ParentFrameTaskRunners::Create(nullptr)); | 465 ParentFrameTaskRunners::Create(nullptr)); |
466 | 466 |
467 worker_inspector_proxy_->WorkerThreadCreated(document, worker_thread_.get(), | 467 worker_inspector_proxy_->WorkerThreadCreated(document, worker_thread_.get(), |
468 script_url); | 468 script_url); |
469 } | 469 } |
470 | 470 |
471 } // namespace blink | 471 } // namespace blink |
OLD | NEW |