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

Unified Diff: Source/bindings/core/v8/WorkerScriptDebugServer.h

Issue 1133903005: DevTools: [wip] do not use InspectorInstrumentation for will/didProcessTask events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/WorkerScriptDebugServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | Source/bindings/core/v8/WorkerScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698