| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project 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 V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| 6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>* | 81 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>* |
| 82 newCallFrames, | 82 newCallFrames, |
| 83 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) override; | 83 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) override; |
| 84 Response getScriptSource(const String16& scriptId, | 84 Response getScriptSource(const String16& scriptId, |
| 85 String16* scriptSource) override; | 85 String16* scriptSource) override; |
| 86 Response pause() override; | 86 Response pause() override; |
| 87 Response resume() override; | 87 Response resume() override; |
| 88 Response stepOver() override; | 88 Response stepOver() override; |
| 89 Response stepInto() override; | 89 Response stepInto() override; |
| 90 Response stepOut() override; | 90 Response stepOut() override; |
| 91 void scheduleStepIntoAsync( |
| 92 std::unique_ptr<ScheduleStepIntoAsyncCallback> callback) override; |
| 91 Response setPauseOnExceptions(const String16& pauseState) override; | 93 Response setPauseOnExceptions(const String16& pauseState) override; |
| 92 Response evaluateOnCallFrame( | 94 Response evaluateOnCallFrame( |
| 93 const String16& callFrameId, const String16& expression, | 95 const String16& callFrameId, const String16& expression, |
| 94 Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI, | 96 Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI, |
| 95 Maybe<bool> silent, Maybe<bool> returnByValue, | 97 Maybe<bool> silent, Maybe<bool> returnByValue, |
| 96 Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect, | 98 Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect, |
| 97 std::unique_ptr<protocol::Runtime::RemoteObject>* result, | 99 std::unique_ptr<protocol::Runtime::RemoteObject>* result, |
| 98 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 100 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
| 99 Response setVariableValue( | 101 Response setVariableValue( |
| 100 int scopeNumber, const String16& variableName, | 102 int scopeNumber, const String16& variableName, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void didExecuteScript(); | 138 void didExecuteScript(); |
| 137 | 139 |
| 138 bool isFunctionBlackboxed(const String16& scriptId, | 140 bool isFunctionBlackboxed(const String16& scriptId, |
| 139 const v8::debug::Location& start, | 141 const v8::debug::Location& start, |
| 140 const v8::debug::Location& end); | 142 const v8::debug::Location& end); |
| 141 | 143 |
| 142 bool skipAllPauses() const { return m_skipAllPauses; } | 144 bool skipAllPauses() const { return m_skipAllPauses; } |
| 143 | 145 |
| 144 v8::Isolate* isolate() { return m_isolate; } | 146 v8::Isolate* isolate() { return m_isolate; } |
| 145 | 147 |
| 148 bool isStepIntoAsyncScheduled() { return m_stepIntoAsyncCallback.get(); } |
| 149 void stepIntoAsyncWasScheduled(); |
| 150 |
| 146 private: | 151 private: |
| 147 void enableImpl(); | 152 void enableImpl(); |
| 148 | 153 |
| 149 void schedulePauseOnNextStatementIfSteppingInto(); | 154 void schedulePauseOnNextStatementIfSteppingInto(); |
| 150 | 155 |
| 151 Response currentCallFrames( | 156 Response currentCallFrames( |
| 152 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); | 157 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); |
| 153 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); | 158 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); |
| 154 | 159 |
| 155 void changeJavaScriptRecursionLevel(int step); | 160 void changeJavaScriptRecursionLevel(int step); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 DebuggerStep m_scheduledDebuggerStep; | 210 DebuggerStep m_scheduledDebuggerStep; |
| 206 bool m_javaScriptPauseScheduled; | 211 bool m_javaScriptPauseScheduled; |
| 207 | 212 |
| 208 int m_recursionLevelForStepOut; | 213 int m_recursionLevelForStepOut; |
| 209 bool m_skipAllPauses = false; | 214 bool m_skipAllPauses = false; |
| 210 | 215 |
| 211 std::unique_ptr<V8Regex> m_blackboxPattern; | 216 std::unique_ptr<V8Regex> m_blackboxPattern; |
| 212 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 217 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
| 213 m_blackboxedPositions; | 218 m_blackboxedPositions; |
| 214 | 219 |
| 220 std::unique_ptr<ScheduleStepIntoAsyncCallback> m_stepIntoAsyncCallback; |
| 221 |
| 215 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 222 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
| 216 }; | 223 }; |
| 217 | 224 |
| 218 } // namespace v8_inspector | 225 } // namespace v8_inspector |
| 219 | 226 |
| 220 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 227 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| OLD | NEW |