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

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

Issue 1754483002: [DevTools] Added setBlackboxPatterns method to protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@provide-hash-for-anonymous-scripts
Patch Set: Created 4 years, 9 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/Dispatcher.h" 9 #include "platform/inspector_protocol/Dispatcher.h"
10 #include "platform/inspector_protocol/Frontend.h" 10 #include "platform/inspector_protocol/Frontend.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void enablePromiseTracker(ErrorString*, 146 void enablePromiseTracker(ErrorString*,
147 const Maybe<bool>& captureStacks) override; 147 const Maybe<bool>& captureStacks) override;
148 void disablePromiseTracker(ErrorString*) override; 148 void disablePromiseTracker(ErrorString*) override;
149 void getPromiseById(ErrorString*, 149 void getPromiseById(ErrorString*,
150 int promiseId, 150 int promiseId,
151 const Maybe<String>& objectGroup, 151 const Maybe<String>& objectGroup,
152 OwnPtr<protocol::Runtime::RemoteObject>* promise) override; 152 OwnPtr<protocol::Runtime::RemoteObject>* promise) override;
153 void flushAsyncOperationEvents(ErrorString*) override; 153 void flushAsyncOperationEvents(ErrorString*) override;
154 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; 154 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override;
155 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; 155 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override;
156 void setBlackboxedRanges(ErrorString*, 156 void addBlackboxPatterns(ErrorString*,
157 const String& scriptId, 157 PassOwnPtr<protocol::Array<protocol::Debugger::BlackboxPattern>>) overri de;
158 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position s) override; 158 void clearBlackboxPatterns(ErrorString*) override;
159 159
160 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot ocol::DictionaryValue> data) override; 160 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot ocol::DictionaryValue> data) override;
161 void cancelPauseOnNextStatement() override; 161 void cancelPauseOnNextStatement() override;
162 bool canBreakProgram() override; 162 bool canBreakProgram() override;
163 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary Value> data) override; 163 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary Value> data) override;
164 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol: :DictionaryValue> data) override; 164 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol: :DictionaryValue> data) override;
165 void willExecuteScript(int scriptId) override; 165 void willExecuteScript(int scriptId) override;
166 void didExecuteScript() override; 166 void didExecuteScript() override;
167 167
168 bool enabled() override; 168 bool enabled() override;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void removeBreakpoint(const String& breakpointId); 216 void removeBreakpoint(const String& breakpointId);
217 void clearStepIntoAsync(); 217 void clearStepIntoAsync();
218 bool assertPaused(ErrorString*); 218 bool assertPaused(ErrorString*);
219 void clearBreakDetails(); 219 void clearBreakDetails();
220 220
221 bool isCallStackEmptyOrBlackboxed(); 221 bool isCallStackEmptyOrBlackboxed();
222 bool isTopCallFrameBlackboxed(); 222 bool isTopCallFrameBlackboxed();
223 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*); 223 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*);
224 224
225 void internalSetAsyncCallStackDepth(int); 225 void internalSetAsyncCallStackDepth(int);
226 void increaseCachedSkipStackGeneration(); 226
227 void restoreBlackboxState();
227 228
228 using ScriptsMap = protocol::HashMap<String, V8DebuggerScript>; 229 using ScriptsMap = protocol::HashMap<String, V8DebuggerScript>;
229 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String, pro tocol::Vector<String>>; 230 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String, pro tocol::Vector<String>>;
230 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring, std::pair<String, BreakpointSource>>; 231 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring, std::pair<String, BreakpointSource>>;
231 using MuteBreakpoins = protocol::HashMap<String, std::pair<String, int>>; 232 using MuteBreakpoins = protocol::HashMap<String, std::pair<String, int>>;
232 233
233 enum DebuggerStep { 234 enum DebuggerStep {
234 NoStep = 0, 235 NoStep = 0,
235 StepInto, 236 StepInto,
236 StepOver, 237 StepOver,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 int m_lastAsyncOperationId; 274 int m_lastAsyncOperationId;
274 protocol::HashSet<int> m_asyncOperationNotifications; 275 protocol::HashSet<int> m_asyncOperationNotifications;
275 protocol::HashSet<int> m_asyncOperationBreakpoints; 276 protocol::HashSet<int> m_asyncOperationBreakpoints;
276 protocol::HashSet<int> m_pausingAsyncOperations; 277 protocol::HashSet<int> m_pausingAsyncOperations;
277 unsigned m_maxAsyncCallStackDepth; 278 unsigned m_maxAsyncCallStackDepth;
278 OwnPtr<V8StackTraceImpl> m_currentAsyncCallChain; 279 OwnPtr<V8StackTraceImpl> m_currentAsyncCallChain;
279 unsigned m_nestedAsyncCallCount; 280 unsigned m_nestedAsyncCallCount;
280 int m_currentAsyncOperationId; 281 int m_currentAsyncOperationId;
281 bool m_pendingTraceAsyncOperationCompleted; 282 bool m_pendingTraceAsyncOperationCompleted;
282 bool m_startingStepIntoAsync; 283 bool m_startingStepIntoAsync;
283 protocol::HashMap<String, protocol::Vector<std::pair<int, int>>> m_blackboxe dPositions; 284
285 protocol::HashMap<String, protocol::Vector<std::pair<int, int>>> m_scriptToB lackboxPositions;
286 String m_blackboxRegexpPattern;
284 }; 287 };
285 288
286 } // namespace blink 289 } // namespace blink
287 290
288 291
289 #endif // V8DebuggerAgentImpl_h 292 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698