| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 void connectTaskOnWorkerThread(WebMessagePortChannelUniquePtr); | 131 void connectTaskOnWorkerThread(WebMessagePortChannelUniquePtr); |
| 132 | 132 |
| 133 // WorkerLoaderProxyProvider | 133 // WorkerLoaderProxyProvider |
| 134 // postTaskToLoader() must be called from a worker thread. | 134 // postTaskToLoader() must be called from a worker thread. |
| 135 void postTaskToLoader(const WebTraceLocation&, | 135 void postTaskToLoader(const WebTraceLocation&, |
| 136 std::unique_ptr<WTF::CrossThreadClosure>) override; | 136 std::unique_ptr<WTF::CrossThreadClosure>) override; |
| 137 void postTaskToWorkerGlobalScope( | 137 void postTaskToWorkerGlobalScope( |
| 138 const WebTraceLocation&, | 138 const WebTraceLocation&, |
| 139 std::unique_ptr<WTF::CrossThreadClosure>) override; | 139 std::unique_ptr<WTF::CrossThreadClosure>) override; |
| 140 ExecutionContext* getLoaderExecutionContext() override; | 140 ThreadableLoadingContext* getThreadableLoadingContext() override; |
| 141 | 141 |
| 142 // 'shadow page' - created to proxy loading requests from the worker. | 142 // 'shadow page' - created to proxy loading requests from the worker. |
| 143 // Will be accessed by worker thread when posting tasks. | 143 // Will be accessed by worker thread when posting tasks. |
| 144 Persistent<ExecutionContext> m_loadingDocument; | 144 Persistent<ExecutionContext> m_loadingDocument; |
| 145 Persistent<ThreadableLoadingContext> m_loadingContext; |
| 145 WebView* m_webView; | 146 WebView* m_webView; |
| 146 Persistent<WebLocalFrameImpl> m_mainFrame; | 147 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 147 bool m_askedToTerminate; | 148 bool m_askedToTerminate; |
| 148 | 149 |
| 149 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | 150 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 150 | 151 |
| 151 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 152 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
| 152 | 153 |
| 153 // Owned by the main thread, but will be accessed by the worker. | 154 // Owned by the main thread, but will be accessed by the worker. |
| 154 CrossThreadPersistent<ParentFrameTaskRunners> m_parentFrameTaskRunners; | 155 CrossThreadPersistent<ParentFrameTaskRunners> m_parentFrameTaskRunners; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 167 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 168 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 168 | 169 |
| 169 WebURL m_url; | 170 WebURL m_url; |
| 170 WebString m_name; | 171 WebString m_name; |
| 171 WebAddressSpace m_creationAddressSpace; | 172 WebAddressSpace m_creationAddressSpace; |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 } // namespace blink | 175 } // namespace blink |
| 175 | 176 |
| 176 #endif // WebSharedWorkerImpl_h | 177 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |