| Index: third_party/WebKit/Source/core/workers/WorkerThread.h
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
|
| index cf23ac89b4d94323be938a80b8ced3ee2ba9136d..ffdf714a290a674d479fbd2934268c9d1eebd683 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.h
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
|
| @@ -135,9 +135,10 @@ public:
|
| void startRunningDebuggerTasksOnPauseOnWorkerThread();
|
| void stopRunningDebuggerTasksOnPauseOnWorkerThread();
|
|
|
| - // Can be called only on the worker thread, WorkerOrWorkletGlobalScope is
|
| - // not thread safe.
|
| + // Can be called only on the worker thread, WorkerOrWorkletGlobalScope
|
| + // and WorkerInspectorController are not thread safe.
|
| WorkerOrWorkletGlobalScope* globalScope();
|
| + WorkerInspectorController* workerInspectorController();
|
|
|
| // Called for creating WorkerThreadLifecycleObserver on both the main thread
|
| // and the worker thread.
|
| @@ -238,6 +239,7 @@ private:
|
| Mutex m_threadStateMutex;
|
|
|
| Persistent<WorkerOrWorkletGlobalScope> m_globalScope;
|
| + Persistent<WorkerInspectorController> m_workerInspectorController;
|
|
|
| // Signaled when the thread starts termination on the main thread.
|
| std::unique_ptr<WaitableEvent> m_terminationEvent;
|
|
|