Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2395)

Unified Diff: Source/core/workers/WorkerThread.cpp

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698