| 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, | 97 Maybe<bool> generatePreview, |
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); | 135 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); |
| 135 void willExecuteScript(int scriptId); | 136 void willExecuteScript(int scriptId); |
| 136 void didExecuteScript(); | 137 void didExecuteScript(); |
| 137 | 138 |
| 138 bool isFunctionBlackboxed(const String16& scriptId, | 139 bool isFunctionBlackboxed(const String16& scriptId, |
| 139 const v8::debug::Location& start, | 140 const v8::debug::Location& start, |
| 140 const v8::debug::Location& end); | 141 const v8::debug::Location& end); |
| 141 | 142 |
| 142 v8::Isolate* isolate() { return m_isolate; } | 143 v8::Isolate* isolate() { return m_isolate; } |
| 143 | 144 |
| 145 void asyncTaskCreated(); |
| 146 void asyncTaskStarted(); |
| 147 void asyncTaskFinished(); |
| 148 |
| 144 private: | 149 private: |
| 145 void enableImpl(); | 150 void enableImpl(); |
| 146 | 151 |
| 147 void schedulePauseOnNextStatementIfSteppingInto(); | 152 void schedulePauseOnNextStatementIfSteppingInto(); |
| 148 | 153 |
| 149 Response currentCallFrames( | 154 Response currentCallFrames( |
| 150 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); | 155 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); |
| 151 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); | 156 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); |
| 152 | 157 |
| 153 void changeJavaScriptRecursionLevel(int step); | 158 void changeJavaScriptRecursionLevel(int step); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 std::unique_ptr<V8Regex> m_blackboxPattern; | 204 std::unique_ptr<V8Regex> m_blackboxPattern; |
| 200 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 205 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
| 201 m_blackboxedPositions; | 206 m_blackboxedPositions; |
| 202 | 207 |
| 203 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 208 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
| 204 }; | 209 }; |
| 205 | 210 |
| 206 } // namespace v8_inspector | 211 } // namespace v8_inspector |
| 207 | 212 |
| 208 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 213 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| OLD | NEW |