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

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/Dispatcher.h" 8 #include "platform/inspector_protocol/Dispatcher.h"
9 #include "platform/inspector_protocol/Frontend.h" 9 #include "platform/inspector_protocol/Frontend.h"
10 #include "platform/v8_inspector/ScriptBreakpoint.h" 10 #include "platform/v8_inspector/ScriptBreakpoint.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void enablePromiseTracker(ErrorString*, 150 void enablePromiseTracker(ErrorString*,
151 const Maybe<bool>& captureStacks) override; 151 const Maybe<bool>& captureStacks) override;
152 void disablePromiseTracker(ErrorString*) override; 152 void disablePromiseTracker(ErrorString*) override;
153 void getPromiseById(ErrorString*, 153 void getPromiseById(ErrorString*,
154 int promiseId, 154 int promiseId,
155 const Maybe<String>& objectGroup, 155 const Maybe<String>& objectGroup,
156 OwnPtr<protocol::Runtime::RemoteObject>* promise) override; 156 OwnPtr<protocol::Runtime::RemoteObject>* promise) override;
157 void flushAsyncOperationEvents(ErrorString*) override; 157 void flushAsyncOperationEvents(ErrorString*) override;
158 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; 158 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override;
159 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; 159 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override;
160 void setBlackboxedRanges(ErrorString*, 160 void addBlackboxRanges(ErrorString*,
161 const String& scriptId, 161 const String& hash,
162 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position s) override; 162 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position s) override;
163 void editBlackboxPatterns(ErrorString*,
164 PassOwnPtr<protocol::Array<protocol::Debugger::BlackboxPattern>> pattern s) override;
163 165
164 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot ocol::DictionaryValue> data) override; 166 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot ocol::DictionaryValue> data) override;
165 void cancelPauseOnNextStatement() override; 167 void cancelPauseOnNextStatement() override;
166 bool canBreakProgram() override; 168 bool canBreakProgram() override;
167 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary Value> data) override; 169 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary Value> data) override;
168 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol: :DictionaryValue> data) override; 170 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol: :DictionaryValue> data) override;
169 void willExecuteScript(int scriptId) override; 171 void willExecuteScript(int scriptId) override;
170 void didExecuteScript() override; 172 void didExecuteScript() override;
171 173
172 bool enabled() override; 174 bool enabled() override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void removeBreakpoint(const String& breakpointId); 223 void removeBreakpoint(const String& breakpointId);
222 void clearStepIntoAsync(); 224 void clearStepIntoAsync();
223 bool assertPaused(ErrorString*); 225 bool assertPaused(ErrorString*);
224 void clearBreakDetails(); 226 void clearBreakDetails();
225 227
226 bool isCallStackEmptyOrBlackboxed(); 228 bool isCallStackEmptyOrBlackboxed();
227 bool isTopCallFrameBlackboxed(); 229 bool isTopCallFrameBlackboxed();
228 bool isCallFrameWithUnknownScriptOrBlackboxed(PassRefPtr<JavaScriptCallFrame >); 230 bool isCallFrameWithUnknownScriptOrBlackboxed(PassRefPtr<JavaScriptCallFrame >);
229 231
230 void internalSetAsyncCallStackDepth(int); 232 void internalSetAsyncCallStackDepth(int);
231 void increaseCachedSkipStackGeneration(); 233
234 void restoreBlackboxState();
232 235
233 using ScriptsMap = HashMap<String, V8DebuggerScript>; 236 using ScriptsMap = HashMap<String, V8DebuggerScript>;
234 using BreakpointIdToDebuggerBreakpointIdsMap = HashMap<String, Vector<String >>; 237 using BreakpointIdToDebuggerBreakpointIdsMap = HashMap<String, Vector<String >>;
235 using DebugServerBreakpointToBreakpointIdAndSourceMap = HashMap<String, std: :pair<String, BreakpointSource>>; 238 using DebugServerBreakpointToBreakpointIdAndSourceMap = HashMap<String, std: :pair<String, BreakpointSource>>;
236 using MuteBreakpoins = HashMap<String, std::pair<String, int>>; 239 using MuteBreakpoins = HashMap<String, std::pair<String, int>>;
237 240
238 enum DebuggerStep { 241 enum DebuggerStep {
239 NoStep = 0, 242 NoStep = 0,
240 StepInto, 243 StepInto,
241 StepOver, 244 StepOver,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 int m_lastAsyncOperationId; 282 int m_lastAsyncOperationId;
280 ListHashSet<int> m_asyncOperationNotifications; 283 ListHashSet<int> m_asyncOperationNotifications;
281 HashSet<int> m_asyncOperationBreakpoints; 284 HashSet<int> m_asyncOperationBreakpoints;
282 HashSet<int> m_pausingAsyncOperations; 285 HashSet<int> m_pausingAsyncOperations;
283 unsigned m_maxAsyncCallStackDepth; 286 unsigned m_maxAsyncCallStackDepth;
284 OwnPtr<V8StackTraceImpl> m_currentAsyncCallChain; 287 OwnPtr<V8StackTraceImpl> m_currentAsyncCallChain;
285 unsigned m_nestedAsyncCallCount; 288 unsigned m_nestedAsyncCallCount;
286 int m_currentAsyncOperationId; 289 int m_currentAsyncOperationId;
287 bool m_pendingTraceAsyncOperationCompleted; 290 bool m_pendingTraceAsyncOperationCompleted;
288 bool m_startingStepIntoAsync; 291 bool m_startingStepIntoAsync;
289 HashMap<String, Vector<std::pair<int, int>>> m_blackboxedPositions; 292
293 HashSet<String> m_loadedScriptHashes;
pfeldman 2016/03/04 20:22:39 Should this be a map?
kozy 2016/03/06 01:13:09 It should be nothing. Removed.
294 HashMap<String, Vector<std::pair<int, int>>> m_hashToBlackboxPositions;
295 String m_blackboxPattern;
290 }; 296 };
291 297
292 } // namespace blink 298 } // namespace blink
293 299
294 300
295 #endif // V8DebuggerAgentImpl_h 301 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698