Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.h |
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h |
index 3393d9d6cc5e1e06314b8584ecce922cb1ecfa66..cac4d64982a089f7af4257843f0b0de357536e15 100644 |
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h |
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h |
@@ -157,7 +157,8 @@ class WebSharedWorkerImpl final : public WorkerReportingProxy, |
std::unique_ptr<WTF::CrossThreadClosure>) override; |
// 'shadow page' - created to proxy loading requests from the worker. |
- Persistent<ExecutionContext> m_loadingDocument; |
+ // Will be accessed by worker thread when posting tasks. |
+ CrossThreadPersistent<ExecutionContext> m_loadingDocument; |
WebView* m_webView; |
Persistent<WebLocalFrameImpl> m_mainFrame; |
bool m_askedToTerminate; |
@@ -167,7 +168,8 @@ class WebSharedWorkerImpl final : public WorkerReportingProxy, |
Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
- Persistent<ParentFrameTaskRunners> m_parentFrameTaskRunners; |
+ // Owned by the main thread, but will be accessed by the worker. |
+ CrossThreadPersistent<ParentFrameTaskRunners> m_parentFrameTaskRunners; |
std::unique_ptr<WorkerThread> m_workerThread; |