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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/workers/WorkerLoaderProxy.h" | 47 #include "core/workers/WorkerLoaderProxy.h" |
48 #include "core/workers/WorkerScriptLoader.h" | 48 #include "core/workers/WorkerScriptLoader.h" |
49 #include "core/workers/WorkerThreadStartupData.h" | 49 #include "core/workers/WorkerThreadStartupData.h" |
50 #include "platform/CrossThreadFunctional.h" | 50 #include "platform/CrossThreadFunctional.h" |
51 #include "platform/heap/Handle.h" | 51 #include "platform/heap/Handle.h" |
52 #include "platform/heap/Persistent.h" | 52 #include "platform/heap/Persistent.h" |
53 #include "platform/loader/fetch/ResourceResponse.h" | 53 #include "platform/loader/fetch/ResourceResponse.h" |
54 #include "platform/network/ContentSecurityPolicyParsers.h" | 54 #include "platform/network/ContentSecurityPolicyParsers.h" |
55 #include "platform/weborigin/KURL.h" | 55 #include "platform/weborigin/KURL.h" |
56 #include "platform/weborigin/SecurityOrigin.h" | 56 #include "platform/weborigin/SecurityOrigin.h" |
| 57 #include "platform/wtf/Functional.h" |
| 58 #include "platform/wtf/PtrUtil.h" |
57 #include "public/platform/Platform.h" | 59 #include "public/platform/Platform.h" |
58 #include "public/platform/WebMessagePortChannel.h" | 60 #include "public/platform/WebMessagePortChannel.h" |
59 #include "public/platform/WebString.h" | 61 #include "public/platform/WebString.h" |
60 #include "public/platform/WebURL.h" | 62 #include "public/platform/WebURL.h" |
61 #include "public/platform/WebURLRequest.h" | 63 #include "public/platform/WebURLRequest.h" |
62 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" | 64 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
63 #include "public/web/WebDevToolsAgent.h" | 65 #include "public/web/WebDevToolsAgent.h" |
64 #include "public/web/WebFrame.h" | 66 #include "public/web/WebFrame.h" |
65 #include "public/web/WebSettings.h" | 67 #include "public/web/WebSettings.h" |
66 #include "public/web/WebView.h" | 68 #include "public/web/WebView.h" |
67 #include "public/web/WebWorkerContentSettingsClientProxy.h" | 69 #include "public/web/WebWorkerContentSettingsClientProxy.h" |
68 #include "web/IndexedDBClientImpl.h" | 70 #include "web/IndexedDBClientImpl.h" |
69 #include "web/LocalFileSystemClient.h" | 71 #include "web/LocalFileSystemClient.h" |
70 #include "web/WebDataSourceImpl.h" | 72 #include "web/WebDataSourceImpl.h" |
71 #include "web/WebLocalFrameImpl.h" | 73 #include "web/WebLocalFrameImpl.h" |
72 #include "web/WorkerContentSettingsClient.h" | 74 #include "web/WorkerContentSettingsClient.h" |
73 #include "wtf/Functional.h" | |
74 #include "wtf/PtrUtil.h" | |
75 | 75 |
76 namespace blink { | 76 namespace blink { |
77 | 77 |
78 // TODO(toyoshim): Share implementation with WebEmbeddedWorkerImpl as much as | 78 // TODO(toyoshim): Share implementation with WebEmbeddedWorkerImpl as much as |
79 // possible. | 79 // possible. |
80 | 80 |
81 WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client) | 81 WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client) |
82 : m_webView(nullptr), | 82 : m_webView(nullptr), |
83 m_mainFrame(nullptr), | 83 m_mainFrame(nullptr), |
84 m_askedToTerminate(false), | 84 m_askedToTerminate(false), |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 if (devtoolsAgent) | 420 if (devtoolsAgent) |
421 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, | 421 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, |
422 message); | 422 message); |
423 } | 423 } |
424 | 424 |
425 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { | 425 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { |
426 return new WebSharedWorkerImpl(client); | 426 return new WebSharedWorkerImpl(client); |
427 } | 427 } |
428 | 428 |
429 } // namespace blink | 429 } // namespace blink |
OLD | NEW |