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 19 matching lines...) Expand all Loading... |
30 #ifndef InspectorDebuggerAgent_h | 30 #ifndef InspectorDebuggerAgent_h |
31 #define InspectorDebuggerAgent_h | 31 #define InspectorDebuggerAgent_h |
32 | 32 |
33 #include "bindings/core/v8/ScriptState.h" | 33 #include "bindings/core/v8/ScriptState.h" |
34 #include "core/InspectorFrontend.h" | 34 #include "core/InspectorFrontend.h" |
35 #include "core/frame/ConsoleTypes.h" | 35 #include "core/frame/ConsoleTypes.h" |
36 #include "core/inspector/AsyncCallStackTracker.h" | 36 #include "core/inspector/AsyncCallStackTracker.h" |
37 #include "core/inspector/ConsoleAPITypes.h" | 37 #include "core/inspector/ConsoleAPITypes.h" |
38 #include "core/inspector/InjectedScript.h" | 38 #include "core/inspector/InjectedScript.h" |
39 #include "core/inspector/InspectorBaseAgent.h" | 39 #include "core/inspector/InspectorBaseAgent.h" |
| 40 #include "core/inspector/PromiseTracker.h" |
40 #include "core/inspector/ScriptBreakpoint.h" | 41 #include "core/inspector/ScriptBreakpoint.h" |
41 #include "core/inspector/ScriptDebugListener.h" | 42 #include "core/inspector/ScriptDebugListener.h" |
42 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
43 #include "wtf/HashMap.h" | 44 #include "wtf/HashMap.h" |
44 #include "wtf/PassRefPtr.h" | 45 #include "wtf/PassRefPtr.h" |
45 #include "wtf/Vector.h" | 46 #include "wtf/Vector.h" |
46 #include "wtf/text/StringHash.h" | 47 #include "wtf/text/StringHash.h" |
47 | 48 |
48 namespace blink { | 49 namespace blink { |
49 | 50 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 bool isTopCallFrameInFramework(); | 220 bool isTopCallFrameInFramework(); |
220 | 221 |
221 void cancelPauseOnNextStatement(); | 222 void cancelPauseOnNextStatement(); |
222 void addMessageToConsole(MessageSource, MessageType); | 223 void addMessageToConsole(MessageSource, MessageType); |
223 | 224 |
224 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); | 225 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); |
225 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); | 226 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); |
226 | 227 |
227 virtual void didParseSource(const String& scriptId, const Script&, CompileRe
sult) OVERRIDE FINAL; | 228 virtual void didParseSource(const String& scriptId, const Script&, CompileRe
sult) OVERRIDE FINAL; |
228 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve
ntType, const String& eventName, int id) OVERRIDE FINAL; | 229 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve
ntType, const String& eventName, int id) OVERRIDE FINAL; |
| 230 virtual void didReceiveV8PromiseEvent(ScriptState*, v8::Handle<v8::Object> p
romise, v8::Handle<v8::Value> parentPromise, int status) OVERRIDE FINAL; |
229 | 231 |
230 void setPauseOnExceptionsImpl(ErrorString*, int); | 232 void setPauseOnExceptionsImpl(ErrorString*, int); |
231 | 233 |
232 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; | 234 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; |
233 void removeBreakpoint(const String& breakpointId); | 235 void removeBreakpoint(const String& breakpointId); |
234 void clear(); | 236 void clear(); |
235 bool assertPaused(ErrorString*); | 237 bool assertPaused(ErrorString*); |
236 void clearBreakDetails(); | 238 void clearBreakDetails(); |
237 | 239 |
238 String sourceMapURLForScript(const Script&, CompileResult); | 240 String sourceMapURLForScript(const Script&, CompileResult); |
(...skipping 20 matching lines...) Expand all Loading... |
259 bool m_debuggerStepScheduled; | 261 bool m_debuggerStepScheduled; |
260 bool m_steppingFromFramework; | 262 bool m_steppingFromFramework; |
261 bool m_pausingOnNativeEvent; | 263 bool m_pausingOnNativeEvent; |
262 RawPtrWillBeMember<Listener> m_listener; | 264 RawPtrWillBeMember<Listener> m_listener; |
263 | 265 |
264 int m_skippedStepInCount; | 266 int m_skippedStepInCount; |
265 int m_minFrameCountForSkip; | 267 int m_minFrameCountForSkip; |
266 bool m_skipAllPauses; | 268 bool m_skipAllPauses; |
267 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 269 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
268 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; | 270 OwnPtrWillBeMember<AsyncCallStackTracker> m_asyncCallStackTracker; |
| 271 PromiseTracker m_promiseTracker; |
269 }; | 272 }; |
270 | 273 |
271 } // namespace blink | 274 } // namespace blink |
272 | 275 |
273 | 276 |
274 #endif // !defined(InspectorDebuggerAgent_h) | 277 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |