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

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

Issue 2087953004: Switch v8 inspector to stl collections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/V8DebuggerImpl.h"
11 #include "platform/v8_inspector/protocol/Debugger.h" 11 #include "platform/v8_inspector/protocol/Debugger.h"
12 12
13 #include <vector>
14
13 namespace blink { 15 namespace blink {
14 16
15 class JavaScriptCallFrame; 17 class JavaScriptCallFrame;
16 class PromiseTracker; 18 class PromiseTracker;
17 class V8InspectorSessionImpl; 19 class V8InspectorSessionImpl;
18 class V8Regex; 20 class V8Regex;
19 class V8StackTraceImpl; 21 class V8StackTraceImpl;
20 22
21 namespace protocol { 23 namespace protocol {
22 class DictionaryValue; 24 class DictionaryValue;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void setBreakpointAt(const String16& scriptId, int lineNumber, int columnNum ber, BreakpointSource, const String16& condition = String16()); 136 void setBreakpointAt(const String16& scriptId, int lineNumber, int columnNum ber, BreakpointSource, const String16& condition = String16());
135 void removeBreakpointAt(const String16& scriptId, int lineNumber, int column Number, BreakpointSource); 137 void removeBreakpointAt(const String16& scriptId, int lineNumber, int column Number, BreakpointSource);
136 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data); 138 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data);
137 void cancelPauseOnNextStatement(); 139 void cancelPauseOnNextStatement();
138 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data); 140 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data);
139 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data); 141 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data);
140 142
141 void reset(); 143 void reset();
142 144
143 // Interface for V8DebuggerImpl 145 // Interface for V8DebuggerImpl
144 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const protocol::Vector<String16>& hitBreakpoints, bool isPromiseRejection) ; 146 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const std::vector<String16>& hitBreakpoints, bool isPromiseRejection);
145 void didContinue(); 147 void didContinue();
146 void didParseSource(const V8DebuggerParsedScript&); 148 void didParseSource(const V8DebuggerParsedScript&);
147 void willExecuteScript(int scriptId); 149 void willExecuteScript(int scriptId);
148 void didExecuteScript(); 150 void didExecuteScript();
149 151
150 v8::Isolate* isolate() { return m_isolate; } 152 v8::Isolate* isolate() { return m_isolate; }
151 153
152 private: 154 private:
153 bool checkEnabled(ErrorString*); 155 bool checkEnabled(ErrorString*);
154 void enable(); 156 void enable();
(...skipping 18 matching lines...) Expand all
173 bool isCurrentCallStackEmptyOrBlackboxed(); 175 bool isCurrentCallStackEmptyOrBlackboxed();
174 bool isTopPausedCallFrameBlackboxed(); 176 bool isTopPausedCallFrameBlackboxed();
175 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*); 177 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*);
176 178
177 void internalSetAsyncCallStackDepth(int); 179 void internalSetAsyncCallStackDepth(int);
178 void increaseCachedSkipStackGeneration(); 180 void increaseCachedSkipStackGeneration();
179 181
180 bool setBlackboxPattern(ErrorString*, const String16& pattern); 182 bool setBlackboxPattern(ErrorString*, const String16& pattern);
181 183
182 using ScriptsMap = protocol::HashMap<String16, V8DebuggerScript>; 184 using ScriptsMap = protocol::HashMap<String16, V8DebuggerScript>;
183 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String16, p rotocol::Vector<String16>>; 185 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String16, s td::vector<String16>>;
184 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring16, std::pair<String16, BreakpointSource>>; 186 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring16, std::pair<String16, BreakpointSource>>;
185 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>> ; 187 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>> ;
186 188
187 enum DebuggerStep { 189 enum DebuggerStep {
188 NoStep = 0, 190 NoStep = 0,
189 StepInto, 191 StepInto,
190 StepOver, 192 StepOver,
191 StepOut 193 StepOut
192 }; 194 };
193 195
(...skipping 16 matching lines...) Expand all
210 bool m_javaScriptPauseScheduled; 212 bool m_javaScriptPauseScheduled;
211 bool m_steppingFromFramework; 213 bool m_steppingFromFramework;
212 bool m_pausingOnNativeEvent; 214 bool m_pausingOnNativeEvent;
213 215
214 int m_skippedStepFrameCount; 216 int m_skippedStepFrameCount;
215 int m_recursionLevelForStepOut; 217 int m_recursionLevelForStepOut;
216 int m_recursionLevelForStepFrame; 218 int m_recursionLevelForStepFrame;
217 bool m_skipAllPauses; 219 bool m_skipAllPauses;
218 220
219 std::unique_ptr<V8Regex> m_blackboxPattern; 221 std::unique_ptr<V8Regex> m_blackboxPattern;
220 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo xedPositions; 222 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo sitions;
221 }; 223 };
222 224
223 } // namespace blink 225 } // namespace blink
224 226
225 227
226 #endif // V8DebuggerAgentImpl_h 228 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698