| 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 29 matching lines...) Expand all Loading... |
| 40 #include "public/platform/WebAddressSpace.h" | 40 #include "public/platform/WebAddressSpace.h" |
| 41 #include "public/platform/WebContentSecurityPolicy.h" | 41 #include "public/platform/WebContentSecurityPolicy.h" |
| 42 #include "public/web/WebDevToolsAgentClient.h" | 42 #include "public/web/WebDevToolsAgentClient.h" |
| 43 #include "public/web/WebFrameClient.h" | 43 #include "public/web/WebFrameClient.h" |
| 44 #include "public/web/WebSharedWorkerClient.h" | 44 #include "public/web/WebSharedWorkerClient.h" |
| 45 #include "web/WebSharedWorkerReportingProxyImpl.h" | 45 #include "web/WebSharedWorkerReportingProxyImpl.h" |
| 46 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 class ParentFrameTaskRunners; | |
| 51 class WebApplicationCacheHost; | 50 class WebApplicationCacheHost; |
| 52 class WebApplicationCacheHostClient; | 51 class WebApplicationCacheHostClient; |
| 53 class WebLocalFrameImpl; | 52 class WebLocalFrameImpl; |
| 54 class WebServiceWorkerNetworkProvider; | 53 class WebServiceWorkerNetworkProvider; |
| 55 class WebSharedWorkerClient; | 54 class WebSharedWorkerClient; |
| 56 class WebString; | 55 class WebString; |
| 57 class WebURL; | 56 class WebURL; |
| 58 class WebView; | 57 class WebView; |
| 59 class WorkerInspectorProxy; | 58 class WorkerInspectorProxy; |
| 60 class WorkerScriptLoader; | 59 class WorkerScriptLoader; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // 'shadow page' - created to proxy loading requests from the worker. | 141 // 'shadow page' - created to proxy loading requests from the worker. |
| 143 // Will be accessed by worker thread when posting tasks. | 142 // Will be accessed by worker thread when posting tasks. |
| 144 Persistent<ExecutionContext> m_loadingDocument; | 143 Persistent<ExecutionContext> m_loadingDocument; |
| 145 WebView* m_webView; | 144 WebView* m_webView; |
| 146 Persistent<WebLocalFrameImpl> m_mainFrame; | 145 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 147 bool m_askedToTerminate; | 146 bool m_askedToTerminate; |
| 148 | 147 |
| 149 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | 148 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 150 | 149 |
| 151 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 150 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
| 151 Persistent<WebSharedWorkerReportingProxyImpl> m_reportingProxy; |
| 152 | 152 |
| 153 // Owned by the main thread, but will be accessed by the worker. | |
| 154 CrossThreadPersistent<ParentFrameTaskRunners> m_parentFrameTaskRunners; | |
| 155 | |
| 156 Persistent<WebSharedWorkerReportingProxyImpl> m_reportingProxy; | |
| 157 std::unique_ptr<WorkerThread> m_workerThread; | 153 std::unique_ptr<WorkerThread> m_workerThread; |
| 158 | 154 |
| 159 WebSharedWorkerClient* m_client; | 155 WebSharedWorkerClient* m_client; |
| 160 | 156 |
| 161 bool m_pauseWorkerContextOnStart; | 157 bool m_pauseWorkerContextOnStart; |
| 162 bool m_isPausedOnStart; | 158 bool m_isPausedOnStart; |
| 163 | 159 |
| 164 // Kept around only while main script loading is ongoing. | 160 // Kept around only while main script loading is ongoing. |
| 165 RefPtr<WorkerScriptLoader> m_mainScriptLoader; | 161 RefPtr<WorkerScriptLoader> m_mainScriptLoader; |
| 166 | 162 |
| 167 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 163 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 168 | 164 |
| 169 WebURL m_url; | 165 WebURL m_url; |
| 170 WebString m_name; | 166 WebString m_name; |
| 171 WebAddressSpace m_creationAddressSpace; | 167 WebAddressSpace m_creationAddressSpace; |
| 172 }; | 168 }; |
| 173 | 169 |
| 174 } // namespace blink | 170 } // namespace blink |
| 175 | 171 |
| 176 #endif // WebSharedWorkerImpl_h | 172 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |