OLD | NEW |
---|---|
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 V8DebuggerAgent_h | 5 #ifndef V8DebuggerAgent_h |
6 #define V8DebuggerAgent_h | 6 #define V8DebuggerAgent_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 class JSONObject; | 32 class JSONObject; |
33 class RemoteCallFrameId; | 33 class RemoteCallFrameId; |
34 class ScriptAsyncCallStack; | 34 class ScriptAsyncCallStack; |
35 class ScriptRegexp; | 35 class ScriptRegexp; |
36 class V8AsyncCallTracker; | 36 class V8AsyncCallTracker; |
37 class V8Debugger; | 37 class V8Debugger; |
38 | 38 |
39 typedef String ErrorString; | 39 typedef String ErrorString; |
40 | 40 |
41 class CORE_EXPORT V8DebuggerAgent | 41 class CORE_EXPORT V8DebuggerAgent |
42 : public V8DebuggerListener | 42 : public NoBaseWillBeGarbageCollectedFinalized<V8DebuggerAgent> |
yurys
2015/08/18 18:45:55
This class is going to be moved out of Blink and c
haraken
2015/08/18 23:50:28
I'm fine with it as long as you don't break oilpan
| |
43 , public V8DebuggerListener | |
43 , public InspectorBackendDispatcher::DebuggerCommandHandler | 44 , public InspectorBackendDispatcher::DebuggerCommandHandler |
44 , public PromiseTracker::Listener { | 45 , public PromiseTracker::Listener { |
45 WTF_MAKE_NONCOPYABLE(V8DebuggerAgent); | 46 WTF_MAKE_NONCOPYABLE(V8DebuggerAgent); |
46 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(V8DebuggerAgent); | 47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(V8DebuggerAgent); |
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8DebuggerAgent); | |
47 public: | 49 public: |
48 enum BreakpointSource { | 50 enum BreakpointSource { |
49 UserBreakpointSource, | 51 UserBreakpointSource, |
50 DebugCommandBreakpointSource, | 52 DebugCommandBreakpointSource, |
51 MonitorCommandBreakpointSource | 53 MonitorCommandBreakpointSource |
52 }; | 54 }; |
53 | 55 |
54 static const char backtraceObjectGroup[]; | 56 static const char backtraceObjectGroup[]; |
55 | 57 |
56 class CORE_EXPORT Client { | 58 class CORE_EXPORT Client { |
57 public: | 59 public: |
58 virtual ~Client() { } | 60 virtual ~Client() { } |
59 virtual void debuggerAgentEnabled() = 0; | 61 virtual void debuggerAgentEnabled() = 0; |
60 virtual void debuggerAgentDisabled() = 0; | 62 virtual void debuggerAgentDisabled() = 0; |
61 virtual void muteConsole() = 0; | 63 virtual void muteConsole() = 0; |
62 virtual void unmuteConsole() = 0; | 64 virtual void unmuteConsole() = 0; |
63 virtual InjectedScript defaultInjectedScript() = 0; | 65 virtual InjectedScript defaultInjectedScript() = 0; |
64 }; | 66 }; |
65 | 67 |
66 V8DebuggerAgent(InjectedScriptManager*, V8Debugger*, Client*, int contextGro upId); | 68 V8DebuggerAgent(InjectedScriptManager*, V8Debugger*, Client*, int contextGro upId); |
67 ~V8DebuggerAgent() override; | 69 ~V8DebuggerAgent() override; |
70 DECLARE_TRACE(); | |
68 | 71 |
69 void setInspectorState(InspectorState* state) { m_state = state; } | 72 void setInspectorState(InspectorState* state) { m_state = state; } |
70 void setFrontend(InspectorFrontend::Debugger* frontend) { m_frontend = front end; } | 73 void setFrontend(InspectorFrontend::Debugger* frontend) { m_frontend = front end; } |
71 void clearFrontend(); | 74 void clearFrontend(); |
72 void restore(); | 75 void restore(); |
73 void disable(ErrorString*) final; | 76 void disable(ErrorString*) final; |
74 | 77 |
75 bool isPaused(); | 78 bool isPaused(); |
76 | 79 |
77 // Part of the protocol. | 80 // Part of the protocol. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 int m_currentAsyncOperationId; | 272 int m_currentAsyncOperationId; |
270 bool m_pendingTraceAsyncOperationCompleted; | 273 bool m_pendingTraceAsyncOperationCompleted; |
271 bool m_startingStepIntoAsync; | 274 bool m_startingStepIntoAsync; |
272 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; | 275 V8GlobalValueMap<String, v8::Script, v8::kNotWeak> m_compiledScripts; |
273 }; | 276 }; |
274 | 277 |
275 } // namespace blink | 278 } // namespace blink |
276 | 279 |
277 | 280 |
278 #endif // V8DebuggerAgent_h | 281 #endif // V8DebuggerAgent_h |
OLD | NEW |