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..cf5bb2e2453bdcbbc5d78e204b165ac4e719b73b 100644 |
| --- a/Source/core/workers/WorkerThread.h |
| +++ b/Source/core/workers/WorkerThread.h |
| @@ -47,6 +47,7 @@ namespace WebCore { |
| class WorkerLoaderProxy; |
| class WorkerReportingProxy; |
| class WorkerThreadStartupData; |
| + class WorkerDebuggerAgent; |
| enum WorkerThreadStartMode { DontPauseWorkerGlobalScopeOnStart, PauseWorkerGlobalScopeOnStart }; |
| @@ -72,6 +73,10 @@ namespace WebCore { |
| NotificationClient* getNotificationClient() { return m_notificationClient; } |
| void setNotificationClient(NotificationClient* client) { m_notificationClient = client; } |
| + WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope.get(); } |
| + |
| + void interruptAndDispatchInspectorCommands(); |
| + |
| protected: |
| WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); |
| @@ -81,8 +86,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*); |
| @@ -103,6 +106,7 @@ namespace WebCore { |
| // Used to signal thread shutdown. |
| OwnPtr<blink::WebWaitableEvent> m_shutdownEvent; |
| + OwnPtrWillBePersistent<WorkerDebuggerAgent> m_workerDebuggerAgent; |
|
yurys
2014/06/19 14:14:47
The agent should be owned by WorkerInspectorContro
|
| }; |
| } // namespace WebCore |