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

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

Issue 1902993002: [DevTools] Introduce provisional blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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"
11 #include "platform/inspector_protocol/String16.h" 11 #include "platform/inspector_protocol/String16.h"
12 #include "platform/v8_inspector/V8DebuggerImpl.h" 12 #include "platform/v8_inspector/V8DebuggerImpl.h"
13 #include "platform/v8_inspector/public/V8DebuggerAgent.h" 13 #include "platform/v8_inspector/public/V8DebuggerAgent.h"
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 V8StackTraceImpl; 21 class V8StackTraceImpl;
21 22
22 namespace protocol { 23 namespace protocol {
23 class DictionaryValue; 24 class DictionaryValue;
24 } 25 }
25 26
26 using protocol::Maybe; 27 using protocol::Maybe;
27 28
28 class V8DebuggerAgentImpl : public V8DebuggerAgent { 29 class V8DebuggerAgentImpl : public V8DebuggerAgent {
29 PROTOCOL_DISALLOW_COPY(V8DebuggerAgentImpl); 30 PROTOCOL_DISALLOW_COPY(V8DebuggerAgentImpl);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const Maybe<bool>& generatePreview, 124 const Maybe<bool>& generatePreview,
124 OwnPtr<protocol::Runtime::RemoteObject>* result, 125 OwnPtr<protocol::Runtime::RemoteObject>* result,
125 Maybe<bool>* wasThrown, 126 Maybe<bool>* wasThrown,
126 Maybe<protocol::Runtime::ExceptionDetails>*) override; 127 Maybe<protocol::Runtime::ExceptionDetails>*) override;
127 void setVariableValue(ErrorString*, 128 void setVariableValue(ErrorString*,
128 int scopeNumber, 129 int scopeNumber,
129 const String16& variableName, 130 const String16& variableName,
130 PassOwnPtr<protocol::Runtime::CallArgument> newValue, 131 PassOwnPtr<protocol::Runtime::CallArgument> newValue,
131 const String16& callFrame) override; 132 const String16& callFrame) override;
132 void setAsyncCallStackDepth(ErrorString*, int depth) override; 133 void setAsyncCallStackDepth(ErrorString*, int depth) override;
133 void setBlackboxedRanges(ErrorString*, 134 void setBlackboxPatterns(ErrorString*,
134 const String16& scriptId, 135 PassOwnPtr<protocol::Array<String16>> patterns) override;
135 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position s) override; 136 void setScriptBlackboxed(ErrorString*,
137 const Maybe<String16>& hash,
138 const Maybe<String16>& url,
139 const Maybe<protocol::Array<protocol::Runtime::SourceRange>>& ranges) ov erride;
136 140
137 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr otocol::DictionaryValue> data) override; 141 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr otocol::DictionaryValue> data) override;
138 void cancelPauseOnNextStatement() override; 142 void cancelPauseOnNextStatement() override;
139 bool canBreakProgram() override; 143 bool canBreakProgram() override;
140 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona ryValue> data) override; 144 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona ryValue> data) override;
141 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco l::DictionaryValue> data) override; 145 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco l::DictionaryValue> data) override;
142 void willExecuteScript(int scriptId) override; 146 void willExecuteScript(int scriptId) override;
143 void didExecuteScript() override; 147 void didExecuteScript() override;
144 148
145 bool enabled() override; 149 bool enabled() override;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 int m_recursionLevelForStepFrame; 237 int m_recursionLevelForStepFrame;
234 bool m_skipAllPauses; 238 bool m_skipAllPauses;
235 239
236 using AsyncTaskToStackTrace = protocol::HashMap<void*, OwnPtr<V8StackTraceIm pl>>; 240 using AsyncTaskToStackTrace = protocol::HashMap<void*, OwnPtr<V8StackTraceIm pl>>;
237 AsyncTaskToStackTrace m_asyncTaskStacks; 241 AsyncTaskToStackTrace m_asyncTaskStacks;
238 protocol::HashSet<void*> m_recurringTasks; 242 protocol::HashSet<void*> m_recurringTasks;
239 int m_maxAsyncCallStackDepth; 243 int m_maxAsyncCallStackDepth;
240 #if ENABLE(ASSERT) 244 #if ENABLE(ASSERT)
241 protocol::Vector<void*> m_currentTasks; 245 protocol::Vector<void*> m_currentTasks;
242 #endif 246 #endif
243 protocol::Vector<OwnPtr<V8StackTraceImpl>> m_currentStacks; 247 Vector<OwnPtr<V8StackTraceImpl>> m_currentStacks;
dgozman 2016/04/20 02:06:40 undo
244 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo xedPositions; 248
249 using BlackboxRangesByString = protocol::HashMap<String16, Vector<std::pair< int, int>>>;
dgozman 2016/04/20 02:06:40 BlackboxPositionsById
250 void restoreBlackboxScripts(const String16& key, BlackboxRangesByString&);
dgozman 2016/04/20 02:06:40 restoreBlackboxedPositions
251 void restoreBlackboxRanges(const String16& key, BlackboxRangesByString&);
dgozman 2016/04/20 02:06:40 restoreBlackboxedPatterns
252
253 OwnPtr<V8Regex> m_blackboxPattern;
254 BlackboxRangesByString m_blackboxRangesByHash;
255 BlackboxRangesByString m_blackboxRangesByURL;
245 }; 256 };
246 257
247 } // namespace blink 258 } // namespace blink
248 259
249 260
250 #endif // V8DebuggerAgentImpl_h 261 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698