Index: Source/core/inspector/WorkerInspectorController.h |
diff --git a/Source/core/inspector/WorkerInspectorController.h b/Source/core/inspector/WorkerInspectorController.h |
index 456fc9636701d6f739d1161b05862eee23b2404f..a8b054374512bc9964e9b0321d0dbc6785ed8191 100644 |
--- a/Source/core/inspector/WorkerInspectorController.h |
+++ b/Source/core/inspector/WorkerInspectorController.h |
@@ -33,6 +33,7 @@ |
#include "core/inspector/InspectorBaseAgent.h" |
#include "core/inspector/InspectorRuntimeAgent.h" |
+#include "public/platform/WebThread.h" |
#include "wtf/FastAllocBase.h" |
#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
@@ -46,6 +47,7 @@ class InjectedScriptManager; |
class InspectorBackendDispatcher; |
class InspectorFrontend; |
class InspectorFrontendChannel; |
+class InspectorProfilerAgent; |
class InspectorStateClient; |
class InstrumentingAgents; |
class WorkerDebuggerAgent; |
@@ -53,7 +55,7 @@ class WorkerGlobalScope; |
class WorkerRuntimeAgent; |
class WorkerScriptDebugServer; |
-class WorkerInspectorController : public RefCountedWillBeGarbageCollectedFinalized<WorkerInspectorController>, public InspectorRuntimeAgent::Client { |
+class WorkerInspectorController : public RefCountedWillBeGarbageCollectedFinalized<WorkerInspectorController>, public InspectorRuntimeAgent::Client, public WebThread::TaskObserver { |
WTF_MAKE_NONCOPYABLE(WorkerInspectorController); |
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerInspectorController); |
public: |
@@ -78,6 +80,9 @@ private: |
void resumeStartup() override; |
bool isRunRequired() override; |
+ void willProcessTask() override; |
+ void didProcessTask() override; |
+ |
RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; |
OwnPtr<InspectorStateClient> m_stateClient; |
OwnPtrWillBeMember<InspectorCompositeState> m_state; |
@@ -90,6 +95,7 @@ private: |
RefPtrWillBeMember<InspectorBackendDispatcher> m_backendDispatcher; |
RawPtrWillBeMember<WorkerDebuggerAgent> m_workerDebuggerAgent; |
OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; |
+ RawPtrWillBeMember<InspectorProfilerAgent> m_profilerAgent; |
RawPtrWillBeMember<WorkerRuntimeAgent> m_workerRuntimeAgent; |
bool m_paused; |
}; |