| 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 V8DebuggerAgentImpl_h | 5 #ifndef V8DebuggerAgentImpl_h |
| 6 #define V8DebuggerAgentImpl_h | 6 #define V8DebuggerAgentImpl_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/Collections.h" | 8 #include "platform/inspector_protocol/Collections.h" |
| 9 #include "platform/inspector_protocol/String16.h" | 9 #include "platform/inspector_protocol/String16.h" |
| 10 #include "platform/v8_inspector/V8DebuggerImpl.h" | 10 #include "platform/v8_inspector/V8DebuggerImpl.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p
tr<protocol::DictionaryValue> data); | 136 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p
tr<protocol::DictionaryValue> data); |
| 137 void cancelPauseOnNextStatement(); | 137 void cancelPauseOnNextStatement(); |
| 138 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic
tionaryValue> data); | 138 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic
tionaryValue> data); |
| 139 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr
otocol::DictionaryValue> data); | 139 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr
otocol::DictionaryValue> data); |
| 140 | 140 |
| 141 void reset(); | 141 void reset(); |
| 142 | 142 |
| 143 // Interface for V8DebuggerImpl | 143 // Interface for V8DebuggerImpl |
| 144 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep
tion, const protocol::Vector<String16>& hitBreakpoints, bool isPromiseRejection)
; | 144 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep
tion, const protocol::Vector<String16>& hitBreakpoints, bool isPromiseRejection)
; |
| 145 void didContinue(); | 145 void didContinue(); |
| 146 void didParseSource(const V8DebuggerParsedScript&); | 146 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); |
| 147 void willExecuteScript(int scriptId); | 147 void willExecuteScript(int scriptId); |
| 148 void didExecuteScript(); | 148 void didExecuteScript(); |
| 149 | 149 |
| 150 v8::Isolate* isolate() { return m_isolate; } | 150 v8::Isolate* isolate() { return m_isolate; } |
| 151 | 151 |
| 152 private: | 152 private: |
| 153 bool checkEnabled(ErrorString*); | 153 bool checkEnabled(ErrorString*); |
| 154 void enable(); | 154 void enable(); |
| 155 | 155 |
| 156 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame)
; | 156 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame)
; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 172 | 172 |
| 173 bool isCurrentCallStackEmptyOrBlackboxed(); | 173 bool isCurrentCallStackEmptyOrBlackboxed(); |
| 174 bool isTopPausedCallFrameBlackboxed(); | 174 bool isTopPausedCallFrameBlackboxed(); |
| 175 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*); | 175 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*); |
| 176 | 176 |
| 177 void internalSetAsyncCallStackDepth(int); | 177 void internalSetAsyncCallStackDepth(int); |
| 178 void increaseCachedSkipStackGeneration(); | 178 void increaseCachedSkipStackGeneration(); |
| 179 | 179 |
| 180 bool setBlackboxPattern(ErrorString*, const String16& pattern); | 180 bool setBlackboxPattern(ErrorString*, const String16& pattern); |
| 181 | 181 |
| 182 using ScriptsMap = protocol::HashMap<String16, V8DebuggerScript>; | 182 using ScriptsMap = protocol::HashMap<String16, std::unique_ptr<V8DebuggerScr
ipt>>; |
| 183 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String16, p
rotocol::Vector<String16>>; | 183 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String16, p
rotocol::Vector<String16>>; |
| 184 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St
ring16, std::pair<String16, BreakpointSource>>; | 184 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St
ring16, std::pair<String16, BreakpointSource>>; |
| 185 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>>
; | 185 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>>
; |
| 186 | 186 |
| 187 enum DebuggerStep { | 187 enum DebuggerStep { |
| 188 NoStep = 0, | 188 NoStep = 0, |
| 189 StepInto, | 189 StepInto, |
| 190 StepOver, | 190 StepOver, |
| 191 StepOut | 191 StepOut |
| 192 }; | 192 }; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 217 bool m_skipAllPauses; | 217 bool m_skipAllPauses; |
| 218 | 218 |
| 219 std::unique_ptr<V8Regex> m_blackboxPattern; | 219 std::unique_ptr<V8Regex> m_blackboxPattern; |
| 220 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo
xedPositions; | 220 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo
xedPositions; |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 } // namespace blink | 223 } // namespace blink |
| 224 | 224 |
| 225 | 225 |
| 226 #endif // V8DebuggerAgentImpl_h | 226 #endif // V8DebuggerAgentImpl_h |
| OLD | NEW |