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

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

Issue 2171973006: [worklets] Change WorkerInspectorController to accept a WorkerThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@script-env
Patch Set: . Created 4 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: 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 845901ebf366d820ee14f34c855520bd38e1102b..1636ed63cc0f1b3236510bd4a501079a062581d8 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
+++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
@@ -44,6 +44,7 @@ class InspectorLogAgent;
class InstrumentingAgents;
class V8Debugger;
class WorkerGlobalScope;
nhiroki 2016/07/27 07:12:05 Can you remove this?
ikilpatrick 2016/07/27 17:50:41 Done.
+class WorkerThread;
class WorkerThreadDebugger;
namespace protocol {
@@ -55,7 +56,7 @@ class FrontendChannel;
class WorkerInspectorController final : public GarbageCollectedFinalized<WorkerInspectorController>, public InspectorSession::Client {
WTF_MAKE_NONCOPYABLE(WorkerInspectorController);
public:
- static WorkerInspectorController* create(WorkerGlobalScope*);
+ static WorkerInspectorController* create(WorkerThread*);
~WorkerInspectorController();
yhirano 2016/07/27 08:57:06 +override
ikilpatrick 2016/07/27 17:50:41 Done.
DECLARE_TRACE();
@@ -67,7 +68,7 @@ public:
void dispose();
private:
- WorkerInspectorController(WorkerGlobalScope*, WorkerThreadDebugger*);
+ WorkerInspectorController(WorkerThread*, WorkerThreadDebugger*);
// InspectorSession::Client implementation.
void sendProtocolMessage(int sessionId, int callId, const String& response, const String& state) override;
@@ -75,7 +76,7 @@ private:
void consoleCleared() override;
WorkerThreadDebugger* m_debugger;
- Member<WorkerGlobalScope> m_workerGlobalScope;
+ WorkerThread* m_thread;
Member<InstrumentingAgents> m_instrumentingAgents;
Member<InspectorSession> m_session;
Member<InspectorLogAgent> m_logAgent;

Powered by Google App Engine
This is Rietveld 408576698