| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void didTerminateWorkerThreadOnMainThread(); | 148 void didTerminateWorkerThreadOnMainThread(); |
| 149 | 149 |
| 150 void postMessageToPageInspectorOnMainThread(const String& message); | 150 void postMessageToPageInspectorOnMainThread(const String& message); |
| 151 | 151 |
| 152 // WorkerLoaderProxyProvider | 152 // WorkerLoaderProxyProvider |
| 153 void postTaskToLoader(const WebTraceLocation&, | 153 void postTaskToLoader(const WebTraceLocation&, |
| 154 std::unique_ptr<WTF::CrossThreadClosure>) override; | 154 std::unique_ptr<WTF::CrossThreadClosure>) override; |
| 155 void postTaskToWorkerGlobalScope( | 155 void postTaskToWorkerGlobalScope( |
| 156 const WebTraceLocation&, | 156 const WebTraceLocation&, |
| 157 std::unique_ptr<WTF::CrossThreadClosure>) override; | 157 std::unique_ptr<WTF::CrossThreadClosure>) override; |
| 158 ExecutionContext* getLoaderExecutionContext() override; | 158 LoadingContext* getLoadingContext() override; |
| 159 | 159 |
| 160 // 'shadow page' - created to proxy loading requests from the worker. | 160 // 'shadow page' - created to proxy loading requests from the worker. |
| 161 // Will be accessed by worker thread when posting tasks. | 161 // Will be accessed by worker thread when posting tasks. |
| 162 Persistent<ExecutionContext> m_loadingDocument; | 162 Persistent<ExecutionContext> m_loadingDocument; |
| 163 Persistent<LoadingContext> m_loadingContext; |
| 163 WebView* m_webView; | 164 WebView* m_webView; |
| 164 Persistent<WebLocalFrameImpl> m_mainFrame; | 165 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 165 bool m_askedToTerminate; | 166 bool m_askedToTerminate; |
| 166 | 167 |
| 167 // This one is bound to and used only on the main thread. | 168 // This one is bound to and used only on the main thread. |
| 168 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | 169 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 169 | 170 |
| 170 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 171 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
| 171 | 172 |
| 172 // Owned by the main thread, but will be accessed by the worker. | 173 // Owned by the main thread, but will be accessed by the worker. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 185 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 186 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 186 | 187 |
| 187 WebURL m_url; | 188 WebURL m_url; |
| 188 WebString m_name; | 189 WebString m_name; |
| 189 WebAddressSpace m_creationAddressSpace; | 190 WebAddressSpace m_creationAddressSpace; |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace blink | 193 } // namespace blink |
| 193 | 194 |
| 194 #endif // WebSharedWorkerImpl_h | 195 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |