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

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

Issue 1163923005: Fix crash in inspector-protocol/debugger/debugger-pause-dedicated-worker.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed printf 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/MainThreadDebugger.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/MainThreadDebugger.h
diff --git a/Source/bindings/core/v8/MainThreadDebugger.h b/Source/bindings/core/v8/MainThreadDebugger.h
index 6340d723358058be855e74e30afb17d9dd77292d..93a692e405e4db16559acf843080b0330d44a022 100644
--- a/Source/bindings/core/v8/MainThreadDebugger.h
+++ b/Source/bindings/core/v8/MainThreadDebugger.h
@@ -32,6 +32,7 @@
#define MainThreadDebugger_h
#include "core/CoreExport.h"
+#include "core/inspector/InspectorTaskRunner.h"
#include "core/inspector/ScriptDebuggerBase.h"
#include <v8.h>
@@ -41,8 +42,6 @@ class Mutex;
namespace blink {
-class Page;
-
class CORE_EXPORT MainThreadDebugger final : public NoBaseWillBeGarbageCollectedFinalized<MainThreadDebugger>, public ScriptDebuggerBase {
WTF_MAKE_NONCOPYABLE(MainThreadDebugger);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MainThreadDebugger);
@@ -66,7 +65,8 @@ public:
void removeListener(ScriptDebugListener*, LocalFrame*);
static MainThreadDebugger* instance();
- static void interruptMainThreadAndRun(PassOwnPtr<V8Debugger::Task>);
+ static void interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunner::Task>);
+ InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); }
DECLARE_VIRTUAL_TRACE();
@@ -83,6 +83,7 @@ private:
ListenersMap m_listenersMap;
OwnPtr<ClientMessageLoop> m_clientMessageLoop;
RawPtrWillBeMember<LocalFrame> m_pausedFrame;
+ OwnPtr<InspectorTaskRunner> m_taskRunner;
static MainThreadDebugger* s_instance;
};
« no previous file with comments | « no previous file | Source/bindings/core/v8/MainThreadDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698