Index: Source/core/workers/WorkerThread.cpp |
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp |
index b04391a18c04666cd2b1d94e7c2d2366d1203f90..13c9ff98890c3e109d097ea0f4db226b24676e95 100644 |
--- a/Source/core/workers/WorkerThread.cpp |
+++ b/Source/core/workers/WorkerThread.cpp |
@@ -30,6 +30,7 @@ |
#include "bindings/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" |
@@ -102,6 +103,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; |
@@ -246,4 +254,10 @@ bool WorkerThread::isCurrentThread() const |
return m_threadID == currentThread(); |
} |
+void WorkerThread::setWorkerInspectorController(PassRefPtrWillBeRawPtr<WorkerInspectorController> workerInspectorController) |
+{ |
+ MutexLocker locker(m_workerInspectorControllerMutex); |
+ m_workerInspectorController = workerInspectorController; |
+} |
+ |
} // namespace WebCore |