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

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

Issue 1838523004: Initialize debugger together with isolate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unnecessary assert hitting in unit tests Created 4 years, 9 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/WorkerThreadDebugger.h
diff --git a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
index 63710af4a6c6c90a0c9563335af5aacd3d80a8fa..447728f95a619fc1d7fba3f997e8f927103b5ad9 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
@@ -43,8 +43,11 @@ public:
explicit WorkerThreadDebugger(WorkerThread*, v8::Isolate*);
~WorkerThreadDebugger() override;
- static void setContextDebugData(v8::Local<v8::Context>);
- static int contextGroupId();
+ static WorkerThreadDebugger* from(v8::Isolate*);
+
+ int contextGroupId();
+ void contextCreated(v8::Local<v8::Context>);
+ void contextWillBeDestroyed(v8::Local<v8::Context>);
// V8DebuggerClient implementation.
void runMessageLoopOnPause(int contextGroupId) override;

Powered by Google App Engine
This is Rietveld 408576698