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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 bool isTopCallFrameInFramework(); | 219 bool isTopCallFrameInFramework(); |
219 | 220 |
220 void cancelPauseOnNextStatement(); | 221 void cancelPauseOnNextStatement(); |
221 void addMessageToConsole(MessageSource, MessageType); | 222 void addMessageToConsole(MessageSource, MessageType); |
222 | 223 |
223 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); | 224 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); |
224 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); | 225 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); |
225 | 226 |
226 virtual void didParseSource(const String& scriptId, const Script&, CompileRe
sult) OVERRIDE FINAL; | 227 virtual void didParseSource(const String& scriptId, const Script&, CompileRe
sult) OVERRIDE FINAL; |
227 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve
ntType, const String& eventName, int id) OVERRIDE FINAL; | 228 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve
ntType, const String& eventName, int id) OVERRIDE FINAL; |
| 229 virtual void didReceiveV8NewPromiseEvent(ExecutionContext*, v8::Handle<v8::O
bject> promise) OVERRIDE FINAL; |
| 230 virtual void didReceiveV8UpdatePromiseEvent(ExecutionContext*, v8::Handle<v8
::Object> promise, int status, v8::Handle<v8::Value>) OVERRIDE FINAL; |
| 231 virtual void didReceiveV8ChainPromiseEvent(ExecutionContext*, v8::Handle<v8:
:Object> promise, v8::Handle<v8::Object> parentPromise) OVERRIDE FINAL; |
228 | 232 |
229 void setPauseOnExceptionsImpl(ErrorString*, int); | 233 void setPauseOnExceptionsImpl(ErrorString*, int); |
230 | 234 |
231 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)
; |
232 void removeBreakpoint(const String& breakpointId); | 236 void removeBreakpoint(const String& breakpointId); |
233 void clear(); | 237 void clear(); |
234 bool assertPaused(ErrorString*); | 238 bool assertPaused(ErrorString*); |
235 void clearBreakDetails(); | 239 void clearBreakDetails(); |
236 | 240 |
237 String sourceMapURLForScript(const Script&, CompileResult); | 241 String sourceMapURLForScript(const Script&, CompileResult); |
(...skipping 18 matching lines...) Expand all Loading... |
256 bool m_debuggerStepScheduled; | 260 bool m_debuggerStepScheduled; |
257 bool m_steppingFromFramework; | 261 bool m_steppingFromFramework; |
258 bool m_pausingOnNativeEvent; | 262 bool m_pausingOnNativeEvent; |
259 RawPtrWillBeMember<Listener> m_listener; | 263 RawPtrWillBeMember<Listener> m_listener; |
260 | 264 |
261 int m_skippedStepInCount; | 265 int m_skippedStepInCount; |
262 int m_minFrameCountForSkip; | 266 int m_minFrameCountForSkip; |
263 bool m_skipAllPauses; | 267 bool m_skipAllPauses; |
264 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 268 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
265 AsyncCallStackTracker m_asyncCallStackTracker; | 269 AsyncCallStackTracker m_asyncCallStackTracker; |
| 270 PromiseTracker m_promiseTracker; |
266 }; | 271 }; |
267 | 272 |
268 } // namespace blink | 273 } // namespace blink |
269 | 274 |
270 | 275 |
271 #endif // !defined(InspectorDebuggerAgent_h) | 276 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |