| 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/InspectorProtocol.h" | 8 #include "platform/inspector_protocol/InspectorProtocol.h" |
| 9 #include "platform/v8_inspector/JavaScriptCallFrame.h" | 9 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
| 10 #include "platform/v8_inspector/protocol/Debugger.h" | 10 #include "platform/v8_inspector/protocol/Debugger.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 V8DebuggerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro
tocol::DictionaryValue* state); | 49 V8DebuggerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro
tocol::DictionaryValue* state); |
| 50 ~V8DebuggerAgentImpl() override; | 50 ~V8DebuggerAgentImpl() override; |
| 51 void restore(); | 51 void restore(); |
| 52 | 52 |
| 53 // Part of the protocol. | 53 // Part of the protocol. |
| 54 void enable(ErrorString*) override; | 54 void enable(ErrorString*) override; |
| 55 void disable(ErrorString*) override; | 55 void disable(ErrorString*) override; |
| 56 void setBreakpointsActive(ErrorString*, bool active) override; | 56 void setBreakpointsActive(ErrorString*, bool active) override; |
| 57 void setSkipAllPauses(ErrorString*, bool skip) override; | 57 void setSkipAllPauses(ErrorString*, bool skipped) override; |
| 58 void setBreakpointByUrl(ErrorString*, | 58 void setBreakpointByUrl(ErrorString*, |
| 59 int lineNumber, | 59 int lineNumber, |
| 60 const Maybe<String16>& optionalURL, | 60 const Maybe<String16>& optionalURL, |
| 61 const Maybe<String16>& optionalURLRegex, | 61 const Maybe<String16>& optionalURLRegex, |
| 62 const Maybe<int>& optionalColumnNumber, | 62 const Maybe<int>& optionalColumnNumber, |
| 63 const Maybe<String16>& optionalCondition, | 63 const Maybe<String16>& optionalCondition, |
| 64 String16*, | 64 String16*, |
| 65 std::unique_ptr<protocol::Array<protocol::Debugger::Location>>* location
s) override; | 65 std::unique_ptr<protocol::Array<protocol::Debugger::Location>>* location
s) override; |
| 66 void setBreakpoint(ErrorString*, | 66 void setBreakpoint(ErrorString*, |
| 67 std::unique_ptr<protocol::Debugger::Location>, | 67 std::unique_ptr<protocol::Debugger::Location>, |
| 68 const Maybe<String16>& optionalCondition, | 68 const Maybe<String16>& optionalCondition, |
| 69 String16*, | 69 String16*, |
| 70 std::unique_ptr<protocol::Debugger::Location>* actualLocation) override; | 70 std::unique_ptr<protocol::Debugger::Location>* actualLocation) override; |
| 71 void removeBreakpoint(ErrorString*, const String16& breakpointId) override; | 71 void removeBreakpoint(ErrorString*, const String16& breakpointId) override; |
| 72 void continueToLocation(ErrorString*, | 72 void continueToLocation(ErrorString*, |
| 73 std::unique_ptr<protocol::Debugger::Location>) override; | 73 std::unique_ptr<protocol::Debugger::Location>) override; |
| 74 void searchInContent(ErrorString*, | 74 void searchInContent(ErrorString*, |
| 75 const String16& scriptId, | 75 const String16& scriptId, |
| 76 const String16& query, | 76 const String16& query, |
| 77 const Maybe<bool>& optionalCaseSensitive, | 77 const Maybe<bool>& optionalCaseSensitive, |
| 78 const Maybe<bool>& optionalIsRegex, | 78 const Maybe<bool>& optionalIsRegex, |
| 79 std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>>*) over
ride; | 79 std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>>*) over
ride; |
| 80 void setScriptSource(ErrorString*, | 80 void setScriptSource(ErrorString*, |
| 81 const String16& inScriptId, | 81 const String16& inScriptId, |
| 82 const String16& inScriptSource, | 82 const String16& inScriptSource, |
| 83 const Maybe<bool>& dryRun, | 83 const Maybe<bool>& inPreview, |
| 84 Maybe<protocol::Array<protocol::Debugger::CallFrame>>* optOutCallFrames, | 84 Maybe<protocol::Array<protocol::Debugger::CallFrame>>* optOutCallFrames, |
| 85 Maybe<bool>* optOutStackChanged, | 85 Maybe<bool>* optOutStackChanged, |
| 86 Maybe<protocol::Runtime::StackTrace>* optOutAsyncStackTrace, | 86 Maybe<protocol::Runtime::StackTrace>* optOutAsyncStackTrace, |
| 87 Maybe<protocol::Runtime::ExceptionDetails>* optOutCompileError) override
; | 87 Maybe<protocol::Runtime::ExceptionDetails>* optOutCompileError) override
; |
| 88 void restartFrame(ErrorString*, | 88 void restartFrame(ErrorString*, |
| 89 const String16& callFrameId, | 89 const String16& callFrameId, |
| 90 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>* newCall
Frames, | 90 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>* newCall
Frames, |
| 91 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) override; | 91 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) override; |
| 92 void getScriptSource(ErrorString*, const String16& scriptId, String16* scrip
tSource) override; | 92 void getScriptSource(ErrorString*, const String16& scriptId, String16* scrip
tSource) override; |
| 93 void pause(ErrorString*) override; | 93 void pause(ErrorString*) override; |
| 94 void resume(ErrorString*) override; | 94 void resume(ErrorString*) override; |
| 95 void stepOver(ErrorString*) override; | 95 void stepOver(ErrorString*) override; |
| 96 void stepInto(ErrorString*) override; | 96 void stepInto(ErrorString*) override; |
| 97 void stepOut(ErrorString*) override; | 97 void stepOut(ErrorString*) override; |
| 98 void setPauseOnExceptions(ErrorString*, const String16& pauseState) override
; | 98 void setPauseOnExceptions(ErrorString*, const String16& pauseState) override
; |
| 99 void evaluateOnCallFrame(ErrorString*, | 99 void evaluateOnCallFrame(ErrorString*, |
| 100 const String16& callFrameId, | 100 const String16& callFrameId, |
| 101 const String16& expression, | 101 const String16& expression, |
| 102 const Maybe<String16>& objectGroup, | 102 const Maybe<String16>& objectGroup, |
| 103 const Maybe<bool>& includeCommandLineAPI, | 103 const Maybe<bool>& includeCommandLineAPI, |
| 104 const Maybe<bool>& silent, | 104 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, |
| 105 const Maybe<bool>& returnByValue, | 105 const Maybe<bool>& returnByValue, |
| 106 const Maybe<bool>& generatePreview, | 106 const Maybe<bool>& generatePreview, |
| 107 std::unique_ptr<protocol::Runtime::RemoteObject>* result, | 107 std::unique_ptr<protocol::Runtime::RemoteObject>* result, |
| 108 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 108 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
| 109 void setVariableValue(ErrorString*, | 109 void setVariableValue(ErrorString*, |
| 110 int scopeNumber, | 110 int scopeNumber, |
| 111 const String16& variableName, | 111 const String16& variableName, |
| 112 std::unique_ptr<protocol::Runtime::CallArgument> newValue, | 112 std::unique_ptr<protocol::Runtime::CallArgument> newValue, |
| 113 const String16& callFrame) override; | 113 const String16& callFrame) override; |
| 114 void setAsyncCallStackDepth(ErrorString*, int depth) override; | 114 void setAsyncCallStackDepth(ErrorString*, int depth) override; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 bool m_skipAllPauses; | 207 bool m_skipAllPauses; |
| 208 | 208 |
| 209 std::unique_ptr<V8Regex> m_blackboxPattern; | 209 std::unique_ptr<V8Regex> m_blackboxPattern; |
| 210 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo
sitions; | 210 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo
sitions; |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| 214 | 214 |
| 215 | 215 |
| 216 #endif // V8DebuggerAgentImpl_h | 216 #endif // V8DebuggerAgentImpl_h |
| OLD | NEW |