| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 | 30 |
| 31 #include "web/WebSharedWorkerImpl.h" | 31 #include "web/WebSharedWorkerImpl.h" |
| 32 | 32 |
| 33 #include <memory> | 33 #include <memory> |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/TaskRunnerHelper.h" | 35 #include "core/dom/TaskRunnerHelper.h" |
| 36 #include "core/events/MessageEvent.h" | 36 #include "core/events/MessageEvent.h" |
| 37 #include "core/exported/WebDataSourceImpl.h" |
| 37 #include "core/inspector/ConsoleMessage.h" | 38 #include "core/inspector/ConsoleMessage.h" |
| 38 #include "core/loader/FrameLoadRequest.h" | 39 #include "core/loader/FrameLoadRequest.h" |
| 39 #include "core/loader/FrameLoader.h" | 40 #include "core/loader/FrameLoader.h" |
| 40 #include "core/loader/ThreadableLoadingContext.h" | 41 #include "core/loader/ThreadableLoadingContext.h" |
| 41 #include "core/probe/CoreProbes.h" | 42 #include "core/probe/CoreProbes.h" |
| 42 #include "core/workers/ParentFrameTaskRunners.h" | 43 #include "core/workers/ParentFrameTaskRunners.h" |
| 43 #include "core/workers/SharedWorkerGlobalScope.h" | 44 #include "core/workers/SharedWorkerGlobalScope.h" |
| 44 #include "core/workers/SharedWorkerThread.h" | 45 #include "core/workers/SharedWorkerThread.h" |
| 45 #include "core/workers/WorkerClients.h" | 46 #include "core/workers/WorkerClients.h" |
| 46 #include "core/workers/WorkerContentSettingsClient.h" | 47 #include "core/workers/WorkerContentSettingsClient.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 64 #include "public/platform/WebURL.h" | 65 #include "public/platform/WebURL.h" |
| 65 #include "public/platform/WebURLRequest.h" | 66 #include "public/platform/WebURLRequest.h" |
| 66 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" | 67 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
| 67 #include "public/web/WebDevToolsAgent.h" | 68 #include "public/web/WebDevToolsAgent.h" |
| 68 #include "public/web/WebFrame.h" | 69 #include "public/web/WebFrame.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 "web/IndexedDBClientImpl.h" | 73 #include "web/IndexedDBClientImpl.h" |
| 73 #include "web/LocalFileSystemClient.h" | 74 #include "web/LocalFileSystemClient.h" |
| 74 #include "web/WebDataSourceImpl.h" | |
| 75 #include "web/WebLocalFrameImpl.h" | 75 #include "web/WebLocalFrameImpl.h" |
| 76 | 76 |
| 77 namespace blink { | 77 namespace blink { |
| 78 | 78 |
| 79 // TODO(toyoshim): Share implementation with WebEmbeddedWorkerImpl as much as | 79 // TODO(toyoshim): Share implementation with WebEmbeddedWorkerImpl as much as |
| 80 // possible. | 80 // possible. |
| 81 | 81 |
| 82 WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client) | 82 WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client) |
| 83 : web_view_(nullptr), | 83 : web_view_(nullptr), |
| 84 main_frame_(nullptr), | 84 main_frame_(nullptr), |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 if (devtools_agent) | 408 if (devtools_agent) |
| 409 devtools_agent->DispatchOnInspectorBackend(session_id, call_id, method, | 409 devtools_agent->DispatchOnInspectorBackend(session_id, call_id, method, |
| 410 message); | 410 message); |
| 411 } | 411 } |
| 412 | 412 |
| 413 WebSharedWorker* WebSharedWorker::Create(WebSharedWorkerClient* client) { | 413 WebSharedWorker* WebSharedWorker::Create(WebSharedWorkerClient* client) { |
| 414 return new WebSharedWorkerImpl(client); | 414 return new WebSharedWorkerImpl(client); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace blink | 417 } // namespace blink |
| OLD | NEW |