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

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

Issue 2456733002: DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: address review comments Created 4 years, 1 month 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/WorkerThreadDebugger.h
diff --git a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
index 88dd9ba5c71d941bbcda7d5ddfdbb1941ba10fc6..3c0d42a2146efd0ab2f9750772aec7ae508cf745 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
@@ -45,16 +45,16 @@ class CORE_EXPORT WorkerThreadDebugger final : public ThreadDebugger {
WTF_MAKE_NONCOPYABLE(WorkerThreadDebugger);
public:
- explicit WorkerThreadDebugger(WorkerThread*, v8::Isolate*);
+ explicit WorkerThreadDebugger(v8::Isolate*);
~WorkerThreadDebugger() override;
static WorkerThreadDebugger* from(v8::Isolate*);
bool isWorker() override { return true; }
- int contextGroupId();
- void contextCreated(v8::Local<v8::Context>);
- void contextWillBeDestroyed(v8::Local<v8::Context>);
- void exceptionThrown(ErrorEvent*);
+ int contextGroupId(WorkerThread*);
+ void contextCreated(WorkerThread*, v8::Local<v8::Context>);
+ void contextWillBeDestroyed(WorkerThread*, v8::Local<v8::Context>);
+ void exceptionThrown(WorkerThread*, ErrorEvent*);
private:
int contextGroupId(ExecutionContext*) override;
@@ -85,7 +85,8 @@ class CORE_EXPORT WorkerThreadDebugger final : public ThreadDebugger {
unsigned columnNumber,
v8_inspector::V8StackTrace*) override;
- WorkerThread* m_workerThread;
+ int m_pausedContextGroupId;
+ WTF::HashMap<int, WorkerThread*> m_workerThreads;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698