| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const String16& callFrameId, | 80 const String16& callFrameId, |
| 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 stepIntoAsync() override; |
| 90 Response stepOut() override; | 91 Response stepOut() override; |
| 91 Response setPauseOnExceptions(const String16& pauseState) override; | 92 Response setPauseOnExceptions(const String16& pauseState) override; |
| 92 Response evaluateOnCallFrame( | 93 Response evaluateOnCallFrame( |
| 93 const String16& callFrameId, const String16& expression, | 94 const String16& callFrameId, const String16& expression, |
| 94 Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI, | 95 Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI, |
| 95 Maybe<bool> silent, Maybe<bool> returnByValue, | 96 Maybe<bool> silent, Maybe<bool> returnByValue, |
| 96 Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect, | 97 Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect, |
| 97 std::unique_ptr<protocol::Runtime::RemoteObject>* result, | 98 std::unique_ptr<protocol::Runtime::RemoteObject>* result, |
| 98 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 99 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
| 99 Response setVariableValue( | 100 Response setVariableValue( |
| (...skipping 14 matching lines...) Expand all Loading... |
| 114 int columnNumber, BreakpointSource, | 115 int columnNumber, BreakpointSource, |
| 115 const String16& condition = String16()); | 116 const String16& condition = String16()); |
| 116 void removeBreakpointAt(const String16& scriptId, int lineNumber, | 117 void removeBreakpointAt(const String16& scriptId, int lineNumber, |
| 117 int columnNumber, BreakpointSource); | 118 int columnNumber, BreakpointSource); |
| 118 void schedulePauseOnNextStatement( | 119 void schedulePauseOnNextStatement( |
| 119 const String16& breakReason, | 120 const String16& breakReason, |
| 120 std::unique_ptr<protocol::DictionaryValue> data); | 121 std::unique_ptr<protocol::DictionaryValue> data); |
| 121 void cancelPauseOnNextStatement(); | 122 void cancelPauseOnNextStatement(); |
| 122 void breakProgram(const String16& breakReason, | 123 void breakProgram(const String16& breakReason, |
| 123 std::unique_ptr<protocol::DictionaryValue> data); | 124 std::unique_ptr<protocol::DictionaryValue> data); |
| 125 void breakProgramIfSteppingInto( |
| 126 const String16& breakReason, |
| 127 std::unique_ptr<protocol::DictionaryValue> data); |
| 124 void breakProgramOnException(const String16& breakReason, | 128 void breakProgramOnException(const String16& breakReason, |
| 125 std::unique_ptr<protocol::DictionaryValue> data); | 129 std::unique_ptr<protocol::DictionaryValue> data); |
| 126 | 130 |
| 127 void reset(); | 131 void reset(); |
| 128 | 132 |
| 129 // Interface for V8InspectorImpl | 133 // Interface for V8InspectorImpl |
| 130 void didPause(int contextId, v8::Local<v8::Value> exception, | 134 void didPause(int contextId, v8::Local<v8::Value> exception, |
| 131 const std::vector<String16>& hitBreakpoints, | 135 const std::vector<String16>& hitBreakpoints, |
| 132 bool isPromiseRejection, bool isUncaught, bool isOOMBreak); | 136 bool isPromiseRejection, bool isUncaught, bool isOOMBreak); |
| 133 void didContinue(); | 137 void didContinue(); |
| 134 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); | 138 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); |
| 135 void willExecuteScript(int scriptId); | 139 void willExecuteScript(int scriptId); |
| 136 void didExecuteScript(); | 140 void didExecuteScript(); |
| 137 | 141 |
| 138 bool isFunctionBlackboxed(const String16& scriptId, | 142 bool isFunctionBlackboxed(const String16& scriptId, |
| 139 const v8::debug::Location& start, | 143 const v8::debug::Location& start, |
| 140 const v8::debug::Location& end); | 144 const v8::debug::Location& end); |
| 141 | 145 |
| 142 bool skipAllPauses() const { return m_skipAllPauses; } | 146 bool skipAllPauses() const { return m_skipAllPauses; } |
| 143 | 147 |
| 144 v8::Isolate* isolate() { return m_isolate; } | 148 v8::Isolate* isolate() { return m_isolate; } |
| 145 | 149 |
| 146 private: | 150 private: |
| 147 void enableImpl(); | 151 void enableImpl(); |
| 148 | 152 |
| 149 void schedulePauseOnNextStatementIfSteppingInto(); | |
| 150 | |
| 151 Response currentCallFrames( | 153 Response currentCallFrames( |
| 152 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); | 154 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); |
| 153 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); | 155 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); |
| 154 | 156 |
| 155 void changeJavaScriptRecursionLevel(int step); | 157 void changeJavaScriptRecursionLevel(int step); |
| 156 | 158 |
| 157 void setPauseOnExceptionsImpl(int); | 159 void setPauseOnExceptionsImpl(int); |
| 158 | 160 |
| 159 std::unique_ptr<protocol::Debugger::Location> resolveBreakpoint( | 161 std::unique_ptr<protocol::Debugger::Location> resolveBreakpoint( |
| 160 const String16& breakpointId, const ScriptBreakpoint&, BreakpointSource); | 162 const String16& breakpointId, const ScriptBreakpoint&, BreakpointSource); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 std::unique_ptr<V8Regex> m_blackboxPattern; | 212 std::unique_ptr<V8Regex> m_blackboxPattern; |
| 211 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 213 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
| 212 m_blackboxedPositions; | 214 m_blackboxedPositions; |
| 213 | 215 |
| 214 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 216 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace v8_inspector | 219 } // namespace v8_inspector |
| 218 | 220 |
| 219 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 221 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| OLD | NEW |