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

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

Issue 2104063002: [DevTools] Store script source in v8::Global. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data); 135 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data);
136 void cancelPauseOnNextStatement(); 136 void cancelPauseOnNextStatement();
137 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data); 137 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data);
138 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data); 138 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data);
139 139
140 void reset(); 140 void reset();
141 141
142 // Interface for V8DebuggerImpl 142 // Interface for V8DebuggerImpl
143 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const std::vector<String16>& hitBreakpoints, bool isPromiseRejection); 143 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const std::vector<String16>& hitBreakpoints, bool isPromiseRejection);
144 void didContinue(); 144 void didContinue();
145 void didParseSource(const V8DebuggerParsedScript&); 145 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success);
146 void willExecuteScript(int scriptId); 146 void willExecuteScript(int scriptId);
147 void didExecuteScript(); 147 void didExecuteScript();
148 148
149 v8::Isolate* isolate() { return m_isolate; } 149 v8::Isolate* isolate() { return m_isolate; }
150 150
151 private: 151 private:
152 bool checkEnabled(ErrorString*); 152 bool checkEnabled(ErrorString*);
153 void enable(); 153 void enable();
154 154
155 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame) ; 155 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame) ;
(...skipping 15 matching lines...) Expand all
171 171
172 bool isCurrentCallStackEmptyOrBlackboxed(); 172 bool isCurrentCallStackEmptyOrBlackboxed();
173 bool isTopPausedCallFrameBlackboxed(); 173 bool isTopPausedCallFrameBlackboxed();
174 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*); 174 bool isCallFrameWithUnknownScriptOrBlackboxed(JavaScriptCallFrame*);
175 175
176 void internalSetAsyncCallStackDepth(int); 176 void internalSetAsyncCallStackDepth(int);
177 void increaseCachedSkipStackGeneration(); 177 void increaseCachedSkipStackGeneration();
178 178
179 bool setBlackboxPattern(ErrorString*, const String16& pattern); 179 bool setBlackboxPattern(ErrorString*, const String16& pattern);
180 180
181 using ScriptsMap = protocol::HashMap<String16, V8DebuggerScript>; 181 using ScriptsMap = protocol::HashMap<String16, std::unique_ptr<V8DebuggerScr ipt>>;
182 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String16, s td::vector<String16>>; 182 using BreakpointIdToDebuggerBreakpointIdsMap = protocol::HashMap<String16, s td::vector<String16>>;
183 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring16, std::pair<String16, BreakpointSource>>; 183 using DebugServerBreakpointToBreakpointIdAndSourceMap = protocol::HashMap<St ring16, std::pair<String16, BreakpointSource>>;
184 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>> ; 184 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>> ;
185 185
186 enum DebuggerStep { 186 enum DebuggerStep {
187 NoStep = 0, 187 NoStep = 0,
188 StepInto, 188 StepInto,
189 StepOver, 189 StepOver,
190 StepOut 190 StepOut
191 }; 191 };
(...skipping 24 matching lines...) Expand all
216 bool m_skipAllPauses; 216 bool m_skipAllPauses;
217 217
218 std::unique_ptr<V8Regex> m_blackboxPattern; 218 std::unique_ptr<V8Regex> m_blackboxPattern;
219 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo sitions; 219 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo sitions;
220 }; 220 };
221 221
222 } // namespace blink 222 } // namespace blink
223 223
224 224
225 #endif // V8DebuggerAgentImpl_h 225 #endif // V8DebuggerAgentImpl_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698