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

Unified Diff: Source/core/inspector/WorkerInspectorController.h

Issue 1133903005: DevTools: [wip] do not use InspectorInstrumentation for will/didProcessTask events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/inspector/WorkerDebuggerAgent.cpp ('k') | Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/core/inspector/WorkerDebuggerAgent.cpp ('k') | Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698