| 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/Dispatcher.h" | 8 #include "platform/inspector_protocol/Dispatcher.h" |
| 9 #include "platform/inspector_protocol/Frontend.h" | 9 #include "platform/inspector_protocol/Frontend.h" |
| 10 #include "platform/v8_inspector/ScriptBreakpoint.h" | 10 #include "platform/v8_inspector/ScriptBreakpoint.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 void enablePromiseTracker(ErrorString*, | 154 void enablePromiseTracker(ErrorString*, |
| 155 const Maybe<bool>& captureStacks) override; | 155 const Maybe<bool>& captureStacks) override; |
| 156 void disablePromiseTracker(ErrorString*) override; | 156 void disablePromiseTracker(ErrorString*) override; |
| 157 void getPromiseById(ErrorString*, | 157 void getPromiseById(ErrorString*, |
| 158 int promiseId, | 158 int promiseId, |
| 159 const Maybe<String>& objectGroup, | 159 const Maybe<String>& objectGroup, |
| 160 OwnPtr<protocol::Runtime::RemoteObject>* promise) override; | 160 OwnPtr<protocol::Runtime::RemoteObject>* promise) override; |
| 161 void flushAsyncOperationEvents(ErrorString*) override; | 161 void flushAsyncOperationEvents(ErrorString*) override; |
| 162 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; | 162 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; |
| 163 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; | 163 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; |
| 164 void setBlackboxedRanges(ErrorString*, | 164 void setBlackboxRanges(ErrorString*, |
| 165 const String& scriptId, | 165 const String& hash, |
| 166 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position
s) override; | 166 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position
s) override; |
| 167 void setBlackboxPatterns(ErrorString*, |
| 168 PassOwnPtr<protocol::Array<protocol::Debugger::BlackboxPattern>> pattern
s) override; |
| 167 | 169 |
| 168 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot
ocol::DictionaryValue> data) override; | 170 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot
ocol::DictionaryValue> data) override; |
| 169 void cancelPauseOnNextStatement() override; | 171 void cancelPauseOnNextStatement() override; |
| 170 bool canBreakProgram() override; | 172 bool canBreakProgram() override; |
| 171 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary
Value> data) override; | 173 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary
Value> data) override; |
| 172 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol:
:DictionaryValue> data) override; | 174 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol:
:DictionaryValue> data) override; |
| 173 void willExecuteScript(int scriptId) override; | 175 void willExecuteScript(int scriptId) override; |
| 174 void didExecuteScript() override; | 176 void didExecuteScript() override; |
| 175 | 177 |
| 176 bool enabled() override; | 178 bool enabled() override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 void removeBreakpoint(const String& breakpointId); | 227 void removeBreakpoint(const String& breakpointId); |
| 226 void clearStepIntoAsync(); | 228 void clearStepIntoAsync(); |
| 227 bool assertPaused(ErrorString*); | 229 bool assertPaused(ErrorString*); |
| 228 void clearBreakDetails(); | 230 void clearBreakDetails(); |
| 229 | 231 |
| 230 bool isCallStackEmptyOrBlackboxed(); | 232 bool isCallStackEmptyOrBlackboxed(); |
| 231 bool isTopCallFrameBlackboxed(); | 233 bool isTopCallFrameBlackboxed(); |
| 232 bool isCallFrameWithUnknownScriptOrBlackboxed(PassRefPtr<JavaScriptCallFrame
>); | 234 bool isCallFrameWithUnknownScriptOrBlackboxed(PassRefPtr<JavaScriptCallFrame
>); |
| 233 | 235 |
| 234 void internalSetAsyncCallStackDepth(int); | 236 void internalSetAsyncCallStackDepth(int); |
| 235 void increaseCachedSkipStackGeneration(); | 237 |
| 238 void restoreBlackboxState(); |
| 236 | 239 |
| 237 using ScriptsMap = HashMap<String, V8DebuggerScript>; | 240 using ScriptsMap = HashMap<String, V8DebuggerScript>; |
| 238 using BreakpointIdToDebuggerBreakpointIdsMap = HashMap<String, Vector<String
>>; | 241 using BreakpointIdToDebuggerBreakpointIdsMap = HashMap<String, Vector<String
>>; |
| 239 using DebugServerBreakpointToBreakpointIdAndSourceMap = HashMap<String, std:
:pair<String, BreakpointSource>>; | 242 using DebugServerBreakpointToBreakpointIdAndSourceMap = HashMap<String, std:
:pair<String, BreakpointSource>>; |
| 240 using MuteBreakpoins = HashMap<String, std::pair<String, int>>; | 243 using MuteBreakpoins = HashMap<String, std::pair<String, int>>; |
| 241 | 244 |
| 242 enum DebuggerStep { | 245 enum DebuggerStep { |
| 243 NoStep = 0, | 246 NoStep = 0, |
| 244 StepInto, | 247 StepInto, |
| 245 StepOver, | 248 StepOver, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 int m_lastAsyncOperationId; | 286 int m_lastAsyncOperationId; |
| 284 ListHashSet<int> m_asyncOperationNotifications; | 287 ListHashSet<int> m_asyncOperationNotifications; |
| 285 HashSet<int> m_asyncOperationBreakpoints; | 288 HashSet<int> m_asyncOperationBreakpoints; |
| 286 HashSet<int> m_pausingAsyncOperations; | 289 HashSet<int> m_pausingAsyncOperations; |
| 287 unsigned m_maxAsyncCallStackDepth; | 290 unsigned m_maxAsyncCallStackDepth; |
| 288 RefPtr<AsyncCallChain> m_currentAsyncCallChain; | 291 RefPtr<AsyncCallChain> m_currentAsyncCallChain; |
| 289 unsigned m_nestedAsyncCallCount; | 292 unsigned m_nestedAsyncCallCount; |
| 290 int m_currentAsyncOperationId; | 293 int m_currentAsyncOperationId; |
| 291 bool m_pendingTraceAsyncOperationCompleted; | 294 bool m_pendingTraceAsyncOperationCompleted; |
| 292 bool m_startingStepIntoAsync; | 295 bool m_startingStepIntoAsync; |
| 293 HashMap<String, Vector<std::pair<int, int>>> m_blackboxedPositions; | 296 |
| 297 HashSet<String> m_loadedScriptHashes; |
| 298 HashMap<String, Vector<std::pair<int, int>>> m_hashToBlackboxPositions; |
| 299 String m_blackboxPattern; |
| 294 }; | 300 }; |
| 295 | 301 |
| 296 } // namespace blink | 302 } // namespace blink |
| 297 | 303 |
| 298 | 304 |
| 299 #endif // V8DebuggerAgentImpl_h | 305 #endif // V8DebuggerAgentImpl_h |
| OLD | NEW |