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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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.h
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h
index 892acb91efe952dd67c47bbdf4985e0693824b14..4ac776e6bab47a70f992bd8768ea70485d41394f 100644
--- a/Source/core/workers/WorkerThread.h
+++ b/Source/core/workers/WorkerThread.h
@@ -46,6 +46,7 @@ namespace WebCore {
class WorkerLoaderProxy;
class WorkerReportingProxy;
class WorkerThreadStartupData;
+ class WorkerInspectorController;
enum WorkerThreadStartMode { DontPauseWorkerGlobalScopeOnStart, PauseWorkerGlobalScopeOnStart };
@@ -68,6 +69,11 @@ namespace WebCore {
// Number of active worker threads.
static unsigned workerThreadCount();
+ WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope.get(); }
+
+ void interruptAndDispatchInspectorCommands();
+ void setWorkerInspectorController(WorkerInspectorController*);
+
protected:
WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
@@ -77,8 +83,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*);
@@ -93,6 +97,9 @@ namespace WebCore {
RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope;
Mutex m_threadCreationMutex;
+ RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorController;
+ Mutex m_workerInspectorControllerMutex;
+
OwnPtrWillBePersistent<WorkerThreadStartupData> m_startupData;
// Used to signal thread shutdown.

Powered by Google App Engine
This is Rietveld 408576698