| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "public/platform/WebContentSecurityPolicy.h" | 42 #include "public/platform/WebContentSecurityPolicy.h" |
| 43 #include "public/web/WebDevToolsAgentClient.h" | 43 #include "public/web/WebDevToolsAgentClient.h" |
| 44 #include "public/web/WebFrameClient.h" | 44 #include "public/web/WebFrameClient.h" |
| 45 #include "public/web/WebSharedWorkerClient.h" | 45 #include "public/web/WebSharedWorkerClient.h" |
| 46 #include "web/WebSharedWorkerReportingProxyImpl.h" | 46 #include "web/WebSharedWorkerReportingProxyImpl.h" |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 class WebApplicationCacheHost; | 50 class WebApplicationCacheHost; |
| 51 class WebApplicationCacheHostClient; | 51 class WebApplicationCacheHostClient; |
| 52 class WebLocalFrameImpl; | 52 class WebLocalFrameBase; |
| 53 class WebServiceWorkerNetworkProvider; | 53 class WebServiceWorkerNetworkProvider; |
| 54 class WebSharedWorkerClient; | 54 class WebSharedWorkerClient; |
| 55 class WebString; | 55 class WebString; |
| 56 class WebURL; | 56 class WebURL; |
| 57 class WebView; | 57 class WebView; |
| 58 class WorkerInspectorProxy; | 58 class WorkerInspectorProxy; |
| 59 class WorkerScriptLoader; | 59 class WorkerScriptLoader; |
| 60 | 60 |
| 61 // This class is used by the worker process code to talk to the SharedWorker | 61 // This class is used by the worker process code to talk to the SharedWorker |
| 62 // implementation. This is basically accessed on the main thread, but some | 62 // implementation. This is basically accessed on the main thread, but some |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void ConnectTaskOnWorkerThread(std::unique_ptr<WebMessagePortChannel>); | 127 void ConnectTaskOnWorkerThread(std::unique_ptr<WebMessagePortChannel>); |
| 128 | 128 |
| 129 // WorkerLoaderProxyProvider | 129 // WorkerLoaderProxyProvider |
| 130 ThreadableLoadingContext* GetThreadableLoadingContext() override; | 130 ThreadableLoadingContext* GetThreadableLoadingContext() override; |
| 131 | 131 |
| 132 // 'shadow page' - created to proxy loading requests from the worker. | 132 // 'shadow page' - created to proxy loading requests from the worker. |
| 133 // Will be accessed by worker thread when posting tasks. | 133 // Will be accessed by worker thread when posting tasks. |
| 134 Persistent<ExecutionContext> loading_document_; | 134 Persistent<ExecutionContext> loading_document_; |
| 135 Persistent<ThreadableLoadingContext> loading_context_; | 135 Persistent<ThreadableLoadingContext> loading_context_; |
| 136 WebView* web_view_; | 136 WebView* web_view_; |
| 137 Persistent<WebLocalFrameImpl> main_frame_; | 137 Persistent<WebLocalFrameBase> main_frame_; |
| 138 bool asked_to_terminate_; | 138 bool asked_to_terminate_; |
| 139 | 139 |
| 140 std::unique_ptr<WebServiceWorkerNetworkProvider> network_provider_; | 140 std::unique_ptr<WebServiceWorkerNetworkProvider> network_provider_; |
| 141 | 141 |
| 142 Persistent<WorkerInspectorProxy> worker_inspector_proxy_; | 142 Persistent<WorkerInspectorProxy> worker_inspector_proxy_; |
| 143 | 143 |
| 144 Persistent<WebSharedWorkerReportingProxyImpl> reporting_proxy_; | 144 Persistent<WebSharedWorkerReportingProxyImpl> reporting_proxy_; |
| 145 std::unique_ptr<WorkerThread> worker_thread_; | 145 std::unique_ptr<WorkerThread> worker_thread_; |
| 146 | 146 |
| 147 WebSharedWorkerClient* client_; | 147 WebSharedWorkerClient* client_; |
| 148 | 148 |
| 149 bool pause_worker_context_on_start_; | 149 bool pause_worker_context_on_start_; |
| 150 bool is_paused_on_start_; | 150 bool is_paused_on_start_; |
| 151 | 151 |
| 152 // Kept around only while main script loading is ongoing. | 152 // Kept around only while main script loading is ongoing. |
| 153 RefPtr<WorkerScriptLoader> main_script_loader_; | 153 RefPtr<WorkerScriptLoader> main_script_loader_; |
| 154 | 154 |
| 155 RefPtr<WorkerLoaderProxy> loader_proxy_; | 155 RefPtr<WorkerLoaderProxy> loader_proxy_; |
| 156 | 156 |
| 157 WebURL url_; | 157 WebURL url_; |
| 158 WebString name_; | 158 WebString name_; |
| 159 WebAddressSpace creation_address_space_; | 159 WebAddressSpace creation_address_space_; |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| 163 | 163 |
| 164 #endif // WebSharedWorkerImpl_h | 164 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |