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

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
« no previous file with comments | « Source/core/workers/WorkerMessagingProxy.cpp ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThread.h
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h
index 561a9b5076b34a7caf63cd4ce64af2f9ceba99dc..deb0028e77ccda3d21b431cfbdad5558145386a4 100644
--- a/Source/core/workers/WorkerThread.h
+++ b/Source/core/workers/WorkerThread.h
@@ -46,6 +46,7 @@ namespace blink {
class WorkerLoaderProxy;
class WorkerReportingProxy;
class WorkerThreadStartupData;
+ class WorkerInspectorController;
enum WorkerThreadStartMode { DontPauseWorkerGlobalScopeOnStart, PauseWorkerGlobalScopeOnStart };
@@ -74,6 +75,11 @@ namespace blink {
// 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>);
@@ -83,8 +89,6 @@ namespace blink {
// 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*);
@@ -99,6 +103,9 @@ namespace blink {
RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope;
Mutex m_threadCreationMutex;
+ RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorController;
+ Mutex m_workerInspectorControllerMutex;
+
OwnPtrWillBePersistent<WorkerThreadStartupData> m_startupData;
// Used to signal thread shutdown.
« no previous file with comments | « Source/core/workers/WorkerMessagingProxy.cpp ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698