| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const bool* doNotPauseOnExceptionsAndMuteConsole, | 137 const bool* doNotPauseOnExceptionsAndMuteConsole, |
| 138 const bool* returnByValue, | 138 const bool* returnByValue, |
| 139 const bool* generatePreview, | 139 const bool* generatePreview, |
| 140 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, | 140 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, |
| 141 TypeBuilder::OptOutput<bool>* wasThrown, | 141 TypeBuilder::OptOutput<bool>* wasThrown, |
| 142 RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE FINAL; | 142 RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE FINAL; |
| 143 virtual void compileScript(ErrorString*, const String& expression, const Str
ing& sourceURL, const int* executionContextId, TypeBuilder::OptOutput<TypeBuilde
r::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERR
IDE; | 143 virtual void compileScript(ErrorString*, const String& expression, const Str
ing& sourceURL, const int* executionContextId, TypeBuilder::OptOutput<TypeBuilde
r::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERR
IDE; |
| 144 virtual void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&,
const int* executionContextId, const String* objectGroup, const bool* doNotPaus
eOnExceptionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result,
RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE; | 144 virtual void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&,
const int* executionContextId, const String* objectGroup, const bool* doNotPaus
eOnExceptionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result,
RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE; |
| 145 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE; | 145 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE; |
| 146 virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String
& in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callF
rame, const String* in_functionObjectId) OVERRIDE FINAL; | 146 virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String
& in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callF
rame, const String* in_functionObjectId) OVERRIDE FINAL; |
| 147 virtual void skipStackFrames(ErrorString*, const String* pattern) OVERRIDE F
INAL; | 147 virtual void skipStackFrames(ErrorString*, const String* pattern, const bool
* skipContentScripts) OVERRIDE FINAL; |
| 148 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL; | 148 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL; |
| 149 | 149 |
| 150 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum
breakReason, PassRefPtr<JSONObject> data); | 150 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum
breakReason, PassRefPtr<JSONObject> data); |
| 151 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl
eShot); | 151 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl
eShot); |
| 152 void didRemoveTimer(ExecutionContext*, int timerId); | 152 void didRemoveTimer(ExecutionContext*, int timerId); |
| 153 bool willFireTimer(ExecutionContext*, int timerId); | 153 bool willFireTimer(ExecutionContext*, int timerId); |
| 154 void didFireTimer(); | 154 void didFireTimer(); |
| 155 void didRequestAnimationFrame(Document*, int callbackId); | 155 void didRequestAnimationFrame(Document*, int callbackId); |
| 156 void didCancelAnimationFrame(Document*, int callbackId); | 156 void didCancelAnimationFrame(Document*, int callbackId); |
| 157 bool willFireAnimationFrame(Document*, int callbackId); | 157 bool willFireAnimationFrame(Document*, int callbackId); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void setPauseOnExceptionsImpl(ErrorString*, int); | 233 void setPauseOnExceptionsImpl(ErrorString*, int); |
| 234 | 234 |
| 235 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; | 235 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; |
| 236 void removeBreakpoint(const String& breakpointId); | 236 void removeBreakpoint(const String& breakpointId); |
| 237 void clear(); | 237 void clear(); |
| 238 bool assertPaused(ErrorString*); | 238 bool assertPaused(ErrorString*); |
| 239 void clearBreakDetails(); | 239 void clearBreakDetails(); |
| 240 | 240 |
| 241 String sourceMapURLForScript(const Script&, CompileResult); | 241 String sourceMapURLForScript(const Script&, CompileResult); |
| 242 | 242 |
| 243 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> topCallFrameSkipUnknownSources()
; | 243 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> topCallFrameSkipUnknownSources(S
tring* scriptURL, bool* isBlackboxed); |
| 244 String scriptURL(JavaScriptCallFrame*); | |
| 245 AsyncCallStackTracker& asyncCallStackTracker() { return *m_asyncCallStackTra
cker; }; | 244 AsyncCallStackTracker& asyncCallStackTracker() { return *m_asyncCallStackTra
cker; }; |
| 246 | 245 |
| 247 typedef HashMap<String, Script> ScriptsMap; | 246 typedef HashMap<String, Script> ScriptsMap; |
| 248 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint
IdsMap; | 247 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint
IdsMap; |
| 249 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre
akpointToBreakpointIdAndSourceMap; | 248 typedef HashMap<String, std::pair<String, BreakpointSource> > DebugServerBre
akpointToBreakpointIdAndSourceMap; |
| 250 | 249 |
| 251 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 250 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 252 InspectorFrontend::Debugger* m_frontend; | 251 InspectorFrontend::Debugger* m_frontend; |
| 253 RefPtr<ScriptState> m_pausedScriptState; | 252 RefPtr<ScriptState> m_pausedScriptState; |
| 254 ScriptValue m_currentCallStack; | 253 ScriptValue m_currentCallStack; |
| 255 ScriptsMap m_scripts; | 254 ScriptsMap m_scripts; |
| 256 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo
intIds; | 255 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo
intIds; |
| 257 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; | 256 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; |
| 258 String m_continueToLocationBreakpointId; | 257 String m_continueToLocationBreakpointId; |
| 259 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 258 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
| 260 RefPtr<JSONObject> m_breakAuxData; | 259 RefPtr<JSONObject> m_breakAuxData; |
| 261 bool m_javaScriptPauseScheduled; | 260 bool m_javaScriptPauseScheduled; |
| 262 bool m_debuggerStepScheduled; | 261 bool m_debuggerStepScheduled; |
| 263 bool m_steppingFromFramework; | 262 bool m_steppingFromFramework; |
| 264 bool m_pausingOnNativeEvent; | 263 bool m_pausingOnNativeEvent; |
| 265 RawPtrWillBeMember<Listener> m_listener; | 264 RawPtrWillBeMember<Listener> m_listener; |
| 266 | 265 |
| 267 int m_skippedStepInCount; | 266 int m_skippedStepInCount; |
| 268 int m_minFrameCountForSkip; | 267 int m_minFrameCountForSkip; |
| 269 bool m_skipAllPauses; | 268 bool m_skipAllPauses; |
| 269 bool m_skipContentScripts; |
| 270 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 270 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
| 271 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; | 271 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; |
| 272 PromiseTracker m_promiseTracker; | 272 PromiseTracker m_promiseTracker; |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 } // namespace blink | 275 } // namespace blink |
| 276 | 276 |
| 277 | 277 |
| 278 #endif // !defined(InspectorDebuggerAgent_h) | 278 #endif // !defined(InspectorDebuggerAgent_h) |
| OLD | NEW |