OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; | 238 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; |
239 void removeBreakpoint(const String& breakpointId); | 239 void removeBreakpoint(const String& breakpointId); |
240 void clear(); | 240 void clear(); |
241 bool assertPaused(ErrorString*); | 241 bool assertPaused(ErrorString*); |
242 void clearBreakDetails(); | 242 void clearBreakDetails(); |
243 | 243 |
244 String sourceMapURLForScript(const Script&, CompileResult); | 244 String sourceMapURLForScript(const Script&, CompileResult); |
245 | 245 |
246 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> topCallFrameSkipUnknownSources(S
tring* scriptURL, bool* isBlackboxed); | 246 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> topCallFrameSkipUnknownSources(S
tring* scriptURL, bool* isBlackboxed); |
247 AsyncCallStackTracker& asyncCallStackTracker() { return *m_asyncCallStackTra
cker; }; | 247 AsyncCallStackTracker& asyncCallStackTracker() const { return *m_asyncCallSt
ackTracker; }; |
| 248 PromiseTracker& promiseTracker() const { return *m_promiseTracker; } |
248 | 249 |
249 typedef HashMap<String, Script> ScriptsMap; | 250 typedef HashMap<String, Script> ScriptsMap; |
250 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint
IdsMap; | 251 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint
IdsMap; |
251 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre
akpointToBreakpointIdAndSourceMap; | 252 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre
akpointToBreakpointIdAndSourceMap; |
252 | 253 |
253 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 254 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
254 InspectorFrontend::Debugger* m_frontend; | 255 InspectorFrontend::Debugger* m_frontend; |
255 RefPtr<ScriptState> m_pausedScriptState; | 256 RefPtr<ScriptState> m_pausedScriptState; |
256 ScriptValue m_currentCallStack; | 257 ScriptValue m_currentCallStack; |
257 ScriptsMap m_scripts; | 258 ScriptsMap m_scripts; |
258 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo
intIds; | 259 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo
intIds; |
259 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; | 260 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; |
260 String m_continueToLocationBreakpointId; | 261 String m_continueToLocationBreakpointId; |
261 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 262 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
262 RefPtr<JSONObject> m_breakAuxData; | 263 RefPtr<JSONObject> m_breakAuxData; |
263 bool m_javaScriptPauseScheduled; | 264 bool m_javaScriptPauseScheduled; |
264 bool m_debuggerStepScheduled; | 265 bool m_debuggerStepScheduled; |
265 bool m_steppingFromFramework; | 266 bool m_steppingFromFramework; |
266 bool m_pausingOnNativeEvent; | 267 bool m_pausingOnNativeEvent; |
267 RawPtrWillBeMember<Listener> m_listener; | 268 RawPtrWillBeMember<Listener> m_listener; |
268 | 269 |
269 int m_skippedStepInCount; | 270 int m_skippedStepInCount; |
270 int m_minFrameCountForSkip; | 271 int m_minFrameCountForSkip; |
271 bool m_skipAllPauses; | 272 bool m_skipAllPauses; |
272 bool m_skipContentScripts; | 273 bool m_skipContentScripts; |
273 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 274 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
274 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; | 275 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; |
275 PromiseTracker m_promiseTracker; | 276 OwnPtrWillBeMember<PromiseTracker> m_promiseTracker; |
276 }; | 277 }; |
277 | 278 |
278 } // namespace blink | 279 } // namespace blink |
279 | 280 |
280 | 281 |
281 #endif // !defined(InspectorDebuggerAgent_h) | 282 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |