Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.h

Issue 2199943004: [DevTools] Rename V8Debugger to V8Inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/Collections.h" 8 #include "platform/inspector_protocol/Collections.h"
9 #include "platform/inspector_protocol/String16.h" 9 #include "platform/inspector_protocol/String16.h"
10 #include "platform/v8_inspector/V8DebuggerImpl.h" 10 #include "platform/v8_inspector/V8InspectorImpl.h"
11 #include "platform/v8_inspector/protocol/Debugger.h" 11 #include "platform/v8_inspector/protocol/Debugger.h"
12 12
13 #include <vector> 13 #include <vector>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class JavaScriptCallFrame; 17 class JavaScriptCallFrame;
18 class PromiseTracker; 18 class PromiseTracker;
19 class V8InspectorSessionImpl; 19 class V8InspectorSessionImpl;
20 class V8Regex; 20 class V8Regex;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 std::unique_ptr<protocol::Runtime::CallArgument> newValue, 115 std::unique_ptr<protocol::Runtime::CallArgument> newValue,
116 const String16& callFrame) override; 116 const String16& callFrame) override;
117 void setAsyncCallStackDepth(ErrorString*, int depth) override; 117 void setAsyncCallStackDepth(ErrorString*, int depth) override;
118 void setBlackboxPatterns(ErrorString*, 118 void setBlackboxPatterns(ErrorString*,
119 std::unique_ptr<protocol::Array<String16>> patterns) override; 119 std::unique_ptr<protocol::Array<String16>> patterns) override;
120 void setBlackboxedRanges(ErrorString*, 120 void setBlackboxedRanges(ErrorString*,
121 const String16& scriptId, 121 const String16& scriptId,
122 std::unique_ptr<protocol::Array<protocol::Debugger::ScriptPosition>> pos itions) override; 122 std::unique_ptr<protocol::Array<protocol::Debugger::ScriptPosition>> pos itions) override;
123 123
124 bool enabled(); 124 bool enabled();
125 V8DebuggerImpl& debugger() { return *m_debugger; }
126 125
127 void setBreakpointAt(const String16& scriptId, int lineNumber, int columnNum ber, BreakpointSource, const String16& condition = String16()); 126 void setBreakpointAt(const String16& scriptId, int lineNumber, int columnNum ber, BreakpointSource, const String16& condition = String16());
128 void removeBreakpointAt(const String16& scriptId, int lineNumber, int column Number, BreakpointSource); 127 void removeBreakpointAt(const String16& scriptId, int lineNumber, int column Number, BreakpointSource);
129 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data); 128 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data);
130 void cancelPauseOnNextStatement(); 129 void cancelPauseOnNextStatement();
131 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data); 130 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data);
132 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data); 131 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data);
133 132
134 void reset(); 133 void reset();
135 134
136 // Interface for V8DebuggerImpl 135 // Interface for V8InspectorImpl
137 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const std::vector<String16>& hitBreakpoints, bool isPromiseRejection); 136 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const std::vector<String16>& hitBreakpoints, bool isPromiseRejection);
138 void didContinue(); 137 void didContinue();
139 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); 138 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success);
140 void willExecuteScript(int scriptId); 139 void willExecuteScript(int scriptId);
141 void didExecuteScript(); 140 void didExecuteScript();
142 141
143 v8::Isolate* isolate() { return m_isolate; } 142 v8::Isolate* isolate() { return m_isolate; }
144 143
145 private: 144 private:
146 bool checkEnabled(ErrorString*); 145 bool checkEnabled(ErrorString*);
(...skipping 30 matching lines...) Expand all
177 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring16, std::pair<String16, BreakpointSource>>; 176 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring16, std::pair<String16, BreakpointSource>>;
178 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>> ; 177 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>> ;
179 178
180 enum DebuggerStep { 179 enum DebuggerStep {
181 NoStep = 0, 180 NoStep = 0,
182 StepInto, 181 StepInto,
183 StepOver, 182 StepOver,
184 StepOut 183 StepOut
185 }; 184 };
186 185
187 V8DebuggerImpl* m_debugger; 186 V8InspectorImpl* m_inspector;
188 V8InspectorSessionImpl* m_session; 187 V8InspectorSessionImpl* m_session;
189 bool m_enabled; 188 bool m_enabled;
190 protocol::DictionaryValue* m_state; 189 protocol::DictionaryValue* m_state;
191 protocol::Debugger::Frontend m_frontend; 190 protocol::Debugger::Frontend m_frontend;
192 v8::Isolate* m_isolate; 191 v8::Isolate* m_isolate;
193 v8::Global<v8::Context> m_pausedContext; 192 v8::Global<v8::Context> m_pausedContext;
194 JavaScriptCallFrames m_pausedCallFrames; 193 JavaScriptCallFrames m_pausedCallFrames;
195 ScriptsMap m_scripts; 194 ScriptsMap m_scripts;
196 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds ; 195 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds ;
197 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; 196 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints;
(...skipping 12 matching lines...) Expand all
210 bool m_skipAllPauses; 209 bool m_skipAllPauses;
211 210
212 std::unique_ptr<V8Regex> m_blackboxPattern; 211 std::unique_ptr<V8Regex> m_blackboxPattern;
213 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo sitions; 212 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo sitions;
214 }; 213 };
215 214
216 } // namespace blink 215 } // namespace blink
217 216
218 217
219 #endif // V8DebuggerAgentImpl_h 218 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698