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

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

Issue 2201623002: [DevTools] Move WorkerInspectorController to WorkerThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@can-execute-scripts
Patch Set: rebased Created 4 years, 4 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: third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
diff --git a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.h b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
index a02705262bfe507c5ef25ec549d28bddd06cc3c4..b5465a0cdaf10628db28c32e043c83f7f5d86745 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
+++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
@@ -33,6 +33,7 @@
#include "core/inspector/InspectorSession.h"
#include "core/inspector/InspectorTaskRunner.h"
+#include "public/platform/WebThread.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
@@ -44,13 +45,10 @@ class InstrumentingAgents;
class WorkerThread;
class WorkerThreadDebugger;
-namespace protocol {
-class Dispatcher;
-class Frontend;
-class FrontendChannel;
-}
-
-class WorkerInspectorController final : public GarbageCollectedFinalized<WorkerInspectorController>, public InspectorSession::Client {
+class WorkerInspectorController final
+ : public GarbageCollectedFinalized<WorkerInspectorController>
+ , public InspectorSession::Client
+ , private WebThread::TaskObserver {
WTF_MAKE_NONCOPYABLE(WorkerInspectorController);
public:
static WorkerInspectorController* create(WorkerThread*);
@@ -63,6 +61,7 @@ public:
void disconnectFrontend();
void dispatchMessageFromFrontend(const String&);
void dispose();
+ void flushProtocolNotifications();
private:
WorkerInspectorController(WorkerThread*, WorkerThreadDebugger*);
@@ -71,6 +70,10 @@ private:
void sendProtocolMessage(int sessionId, int callId, const String& response, const String& state) override;
void resumeStartup() override;
+ // WebThread::TaskObserver implementation.
+ void willProcessTask() override;
+ void didProcessTask() override;
+
WorkerThreadDebugger* m_debugger;
WorkerThread* m_thread;
Member<InstrumentingAgents> m_instrumentingAgents;

Powered by Google App Engine
This is Rietveld 408576698