| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "public/web/WebSharedWorkerClient.h" | 44 #include "public/web/WebSharedWorkerClient.h" |
| 45 #include "wtf/RefPtr.h" | 45 #include "wtf/RefPtr.h" |
| 46 #include <memory> | 46 #include <memory> |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 class ConsoleMessage; | 50 class ConsoleMessage; |
| 51 class ParentFrameTaskRunners; | 51 class ParentFrameTaskRunners; |
| 52 class WebApplicationCacheHost; | 52 class WebApplicationCacheHost; |
| 53 class WebApplicationCacheHostClient; | 53 class WebApplicationCacheHostClient; |
| 54 class WebFrameWidget; |
| 54 class WebLocalFrameImpl; | 55 class WebLocalFrameImpl; |
| 55 class WebServiceWorkerNetworkProvider; | 56 class WebServiceWorkerNetworkProvider; |
| 56 class WebSharedWorkerClient; | 57 class WebSharedWorkerClient; |
| 57 class WebString; | 58 class WebString; |
| 58 class WebURL; | 59 class WebURL; |
| 59 class WebView; | 60 class WebView; |
| 60 class WorkerInspectorProxy; | 61 class WorkerInspectorProxy; |
| 61 class WorkerScriptLoader; | 62 class WorkerScriptLoader; |
| 62 | 63 |
| 63 // This class is used by the worker process code to talk to the SharedWorker | 64 // This class is used by the worker process code to talk to the SharedWorker |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 131 |
| 131 void postMessageToPageInspectorOnMainThread(const String& message); | 132 void postMessageToPageInspectorOnMainThread(const String& message); |
| 132 | 133 |
| 133 // WorkerLoaderProxyProvider | 134 // WorkerLoaderProxyProvider |
| 134 void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionCont
extTask>) override; | 135 void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionCont
extTask>) override; |
| 135 void postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<Ex
ecutionContextTask>) override; | 136 void postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<Ex
ecutionContextTask>) override; |
| 136 | 137 |
| 137 // 'shadow page' - created to proxy loading requests from the worker. | 138 // 'shadow page' - created to proxy loading requests from the worker. |
| 138 Persistent<ExecutionContext> m_loadingDocument; | 139 Persistent<ExecutionContext> m_loadingDocument; |
| 139 WebView* m_webView; | 140 WebView* m_webView; |
| 141 WebFrameWidget* m_webFrameWidget; |
| 140 Persistent<WebLocalFrameImpl> m_mainFrame; | 142 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 141 bool m_askedToTerminate; | 143 bool m_askedToTerminate; |
| 142 | 144 |
| 143 // This one is bound to and used only on the main thread. | 145 // This one is bound to and used only on the main thread. |
| 144 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | 146 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 145 | 147 |
| 146 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 148 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
| 147 | 149 |
| 148 Persistent<ParentFrameTaskRunners> m_mainThreadTaskRunners; | 150 Persistent<ParentFrameTaskRunners> m_mainThreadTaskRunners; |
| 149 | 151 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 160 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 162 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 161 | 163 |
| 162 WebURL m_url; | 164 WebURL m_url; |
| 163 WebString m_name; | 165 WebString m_name; |
| 164 WebAddressSpace m_creationAddressSpace; | 166 WebAddressSpace m_creationAddressSpace; |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 } // namespace blink | 169 } // namespace blink |
| 168 | 170 |
| 169 #endif // WebSharedWorkerImpl_h | 171 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |