Chromium Code Reviews| Index: Source/core/workers/WorkerThread.h |
| diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h |
| index 8d0f409fcb125324cf9b136bcdd26a45e875f9d1..da37f3602e87465fbd4fdb50b12c1443841421c0 100644 |
| --- a/Source/core/workers/WorkerThread.h |
| +++ b/Source/core/workers/WorkerThread.h |
| @@ -47,6 +47,8 @@ namespace WebCore { |
| class WorkerLoaderProxy; |
| class WorkerReportingProxy; |
| class WorkerThreadStartupData; |
| + class WorkerDebuggerAgent; |
|
yurys
2014/07/03 03:25:54
You don't need this forward declaration anymore.
keishi
2014/07/03 23:53:53
Done.
|
| + class WorkerInspectorController; |
| enum WorkerThreadStartMode { DontPauseWorkerGlobalScopeOnStart, PauseWorkerGlobalScopeOnStart }; |
| @@ -72,6 +74,11 @@ namespace WebCore { |
| NotificationClient* getNotificationClient() { return m_notificationClient; } |
| void setNotificationClient(NotificationClient* client) { m_notificationClient = client; } |
| + WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope.get(); } |
| + |
| + void interruptAndDispatchInspectorCommands(); |
| + void setWorkerInspectorController(PassRefPtrWillBeRawPtr<WorkerInspectorController>); |
|
yurys
2014/07/03 03:25:54
The argument can already be a raw pointer if it wo
|
| + |
| protected: |
| WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); |
| @@ -81,8 +88,6 @@ namespace WebCore { |
| // Executes the event loop for the worker thread. Derived classes can override to perform actions before/after entering the event loop. |
| virtual void runEventLoop(); |
| - WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope.get(); } |
| - |
| private: |
| // Static function executed as the core routine on the new thread. Passed a pointer to a WorkerThread object. |
| static void workerThreadStart(void*); |
| @@ -97,6 +102,9 @@ namespace WebCore { |
| RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope; |
| Mutex m_threadCreationMutex; |
| + RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorController; |
| + Mutex m_workerInspectorControllerMutex; |
| + |
| OwnPtrWillBePersistent<WorkerThreadStartupData> m_startupData; |
| NotificationClient* m_notificationClient; |