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

Side by Side Diff: Source/core/inspector/ScriptDebuggerBase.h

Issue 1214863013: [DevTools] Remove ScriptDebugListener from V8Debugger. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScriptDebuggerBase_h 5 #ifndef ScriptDebuggerBase_h
6 #define ScriptDebuggerBase_h 6 #define ScriptDebuggerBase_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/inspector/V8Debugger.h" 9 #include "core/inspector/V8Debugger.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ScriptDebugListener;
15
14 class CORE_EXPORT ScriptDebuggerBase : public V8Debugger::Client { 16 class CORE_EXPORT ScriptDebuggerBase : public V8Debugger::Client {
15 WTF_MAKE_NONCOPYABLE(ScriptDebuggerBase); 17 WTF_MAKE_NONCOPYABLE(ScriptDebuggerBase);
16 public: 18 public:
17 ScriptDebuggerBase(v8::Isolate*, PassOwnPtrWillBeRawPtr<V8Debugger>); 19 explicit ScriptDebuggerBase(v8::Isolate*);
18 ~ScriptDebuggerBase() override; 20 ~ScriptDebuggerBase() override;
19 v8::Local<v8::Object> compileDebuggerScript() override;
20 V8Debugger* debugger() const { return m_debugger.get(); } 21 V8Debugger* debugger() const { return m_debugger.get(); }
21 22
23 v8::Local<v8::Object> compileDebuggerScript() override;
24 void didParseSource(v8::Local<v8::Context>, const V8Debugger::ParsedScript&) override;
25 V8Debugger::SkipPauseRequest didPause(ScriptState*, const ScriptValue& callF rames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRejection) override;
26 bool v8AsyncTaskEventsEnabled(ScriptState*) override;
27 void didReceiveV8AsyncTaskEvent(ScriptState*, const String& eventType, const String& eventName, int id) override;
28 bool v8PromiseEventsEnabled(ScriptState*) override;
29 void didReceiveV8PromiseEvent(ScriptState*, v8::Local<v8::Object> promise, v 8::Local<v8::Value> parentPromise, int status) override;
30
22 DECLARE_VIRTUAL_TRACE(); 31 DECLARE_VIRTUAL_TRACE();
23 32
33 protected:
34 virtual ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Contex t>) = 0;
35
24 private: 36 private:
25 v8::Isolate* m_isolate; 37 v8::Isolate* m_isolate;
26 OwnPtrWillBeMember<V8Debugger> m_debugger; 38 OwnPtrWillBeMember<V8Debugger> m_debugger;
27 }; 39 };
28 40
29 } // namespace blink 41 } // namespace blink
30 42
31 43
32 #endif // !defined(ScriptDebuggerBase_h) 44 #endif // !defined(ScriptDebuggerBase_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/MainThreadDebugger.cpp ('k') | Source/core/inspector/ScriptDebuggerBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698