Index: Source/bindings/core/v8/WorkerScriptDebugServer.h |
diff --git a/Source/bindings/core/v8/WorkerScriptDebugServer.h b/Source/bindings/core/v8/WorkerScriptDebugServer.h |
index be2368fa93d6bbb4e19b0845b711f261e2732223..786e5de0e9a29f23dc34c0295eb0cecaf7c03308 100644 |
--- a/Source/bindings/core/v8/WorkerScriptDebugServer.h |
+++ b/Source/bindings/core/v8/WorkerScriptDebugServer.h |
@@ -33,6 +33,7 @@ |
#include "core/inspector/PerIsolateDebuggerClient.h" |
#include "platform/heap/Handle.h" |
+#include "public/platform/WebThread.h" |
#include "wtf/Forward.h" |
#include <v8.h> |
@@ -45,9 +46,9 @@ class WorkerScriptDebugServer final : public NoBaseWillBeGarbageCollectedFinaliz |
WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer); |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerScriptDebugServer); |
public: |
- static PassOwnPtrWillBeRawPtr<WorkerScriptDebugServer> create(WorkerGlobalScope* workerGlobalScope) |
+ static PassOwnPtrWillBeRawPtr<WorkerScriptDebugServer> create(WebThread::TaskObserver* taskObserver, WorkerGlobalScope* workerGlobalScope) |
{ |
- return adoptPtrWillBeNoop(new WorkerScriptDebugServer(workerGlobalScope)); |
+ return adoptPtrWillBeNoop(new WorkerScriptDebugServer(taskObserver, workerGlobalScope)); |
} |
~WorkerScriptDebugServer() override; |
@@ -59,13 +60,14 @@ public: |
DECLARE_VIRTUAL_TRACE(); |
private: |
- explicit WorkerScriptDebugServer(WorkerGlobalScope*); |
+ explicit WorkerScriptDebugServer(WebThread::TaskObserver*, WorkerGlobalScope*); |
ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Context>); |
void runMessageLoopOnPause(v8::Local<v8::Context>); |
void quitMessageLoopOnPause(); |
ScriptDebugListener* m_listener; |
+ WebThread::TaskObserver* m_taskObserver; |
RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; |
}; |