| Index: Source/core/workers/WorkerThread.cpp
|
| diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
|
| index e84fd393fc20ee4a0c4a64870fcef6137b2950a7..9f93a9c1fbfe5d6adcabae3ed7ae17427aef6bd5 100644
|
| --- a/Source/core/workers/WorkerThread.cpp
|
| +++ b/Source/core/workers/WorkerThread.cpp
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "bindings/core/v8/ScriptSourceCode.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| +#include "core/inspector/WorkerInspectorController.h"
|
| #include "core/workers/DedicatedWorkerGlobalScope.h"
|
| #include "core/workers/WorkerClients.h"
|
| #include "core/workers/WorkerReportingProxy.h"
|
| @@ -101,6 +102,13 @@ void WorkerThread::workerThreadStart(void* thread)
|
| static_cast<WorkerThread*>(thread)->workerThread();
|
| }
|
|
|
| +void WorkerThread::interruptAndDispatchInspectorCommands()
|
| +{
|
| + MutexLocker locker(m_workerInspectorControllerMutex);
|
| + if (m_workerInspectorController)
|
| + m_workerInspectorController->interruptAndDispatchInspectorCommands();
|
| +}
|
| +
|
| void WorkerThread::workerThread()
|
| {
|
| KURL scriptURL = m_startupData->m_scriptURL;
|
| @@ -260,4 +268,10 @@ MessageQueueWaitResult WorkerThread::runDebuggerTask(WorkerRunLoop::WaitMode wai
|
| return m_runLoop.runDebuggerTask(waitMode);
|
| }
|
|
|
| +void WorkerThread::setWorkerInspectorController(WorkerInspectorController* workerInspectorController)
|
| +{
|
| + MutexLocker locker(m_workerInspectorControllerMutex);
|
| + m_workerInspectorController = workerInspectorController;
|
| +}
|
| +
|
| } // namespace blink
|
|
|