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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 #ifndef WebEmbeddedWorkerImpl_h | 31 #ifndef WebEmbeddedWorkerImpl_h |
32 #define WebEmbeddedWorkerImpl_h | 32 #define WebEmbeddedWorkerImpl_h |
33 | 33 |
34 #include <memory> | 34 #include <memory> |
| 35 #include "core/workers/WorkerClients.h" |
| 36 #include "modules/ModulesExport.h" |
35 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
36 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
37 #include "public/platform/WebContentSecurityPolicy.h" | 39 #include "public/platform/WebContentSecurityPolicy.h" |
38 #include "public/web/WebDevToolsAgentClient.h" | 40 #include "public/web/WebDevToolsAgentClient.h" |
39 #include "public/web/WebEmbeddedWorker.h" | 41 #include "public/web/WebEmbeddedWorker.h" |
40 #include "public/web/WebEmbeddedWorkerStartData.h" | 42 #include "public/web/WebEmbeddedWorkerStartData.h" |
41 #include "public/web/WebFrameClient.h" | 43 #include "public/web/WebFrameClient.h" |
42 | 44 |
43 namespace blink { | 45 namespace blink { |
44 | 46 |
45 class ThreadableLoadingContext; | 47 class ThreadableLoadingContext; |
46 class ServiceWorkerGlobalScopeProxy; | 48 class ServiceWorkerGlobalScopeProxy; |
47 class WebLocalFrameBase; | 49 class WebLocalFrameBase; |
48 class WebView; | 50 class WebView; |
49 class WorkerInspectorProxy; | 51 class WorkerInspectorProxy; |
50 class WorkerScriptLoader; | 52 class WorkerScriptLoader; |
51 class WorkerThread; | 53 class WorkerThread; |
52 | 54 |
53 class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker, | 55 class MODULES_EXPORT WebEmbeddedWorkerImpl final |
54 public WebFrameClient, | 56 : public WebEmbeddedWorker, |
55 public WebDevToolsAgentClient { | 57 public WebFrameClient, |
| 58 NON_EXPORTED_BASE(public WebDevToolsAgentClient) { |
56 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); | 59 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); |
57 | 60 |
58 public: | 61 public: |
59 WebEmbeddedWorkerImpl(std::unique_ptr<WebServiceWorkerContextClient>, | 62 WebEmbeddedWorkerImpl(std::unique_ptr<WebServiceWorkerContextClient>, |
60 std::unique_ptr<WebContentSettingsClient>); | 63 std::unique_ptr<WebContentSettingsClient>); |
61 ~WebEmbeddedWorkerImpl() override; | 64 ~WebEmbeddedWorkerImpl() override; |
62 | 65 |
63 // WebEmbeddedWorker overrides. | 66 // WebEmbeddedWorker overrides. |
64 void StartWorkerContext(const WebEmbeddedWorkerStartData&) override; | 67 void StartWorkerContext(const WebEmbeddedWorkerStartData&) override; |
65 void TerminateWorkerContext() override; | 68 void TerminateWorkerContext() override; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 135 |
133 enum { | 136 enum { |
134 kDontPauseAfterDownload, | 137 kDontPauseAfterDownload, |
135 kDoPauseAfterDownload, | 138 kDoPauseAfterDownload, |
136 kIsPausedAfterDownload | 139 kIsPausedAfterDownload |
137 } pause_after_download_state_; | 140 } pause_after_download_state_; |
138 | 141 |
139 WaitingForDebuggerState waiting_for_debugger_state_; | 142 WaitingForDebuggerState waiting_for_debugger_state_; |
140 }; | 143 }; |
141 | 144 |
| 145 extern template class WorkerClientsInitializer<WebEmbeddedWorkerImpl>; |
| 146 |
142 } // namespace blink | 147 } // namespace blink |
143 | 148 |
144 #endif // WebEmbeddedWorkerImpl_h | 149 #endif // WebEmbeddedWorkerImpl_h |
OLD | NEW |