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 "InspectorFrontend.h" | 33 #include "InspectorFrontend.h" |
34 #include "bindings/v8/ScriptState.h" | 34 #include "bindings/v8/ScriptState.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 WebCore { | 49 namespace WebCore { |
49 | 50 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); | 155 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe
ner*, bool useCapture); |
155 void didHandleEvent(); | 156 void didHandleEvent(); |
156 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); | 157 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); |
157 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); | 158 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); |
158 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); | 159 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); |
159 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); | 160 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); |
160 void didDeliverMutationRecords(); | 161 void didDeliverMutationRecords(); |
161 void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isRes
olved); | 162 void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isRes
olved); |
162 void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*); | 163 void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*); |
163 void didPerformPromiseTask(); | 164 void didPerformPromiseTask(); |
| 165 bool isPromiseTrackerEnabled(); |
| 166 void didCreatePromise(const ScriptObject& promise); |
| 167 void didUpdatePromiseParent(const ScriptObject& promise, const ScriptObject&
parentPromise); |
| 168 void didUpdatePromiseState(const ScriptObject& promise, V8PromiseCustom::Pro
miseState, const ScriptValue& result); |
164 bool canBreakProgram(); | 169 bool canBreakProgram(); |
165 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); | 170 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas
sRefPtr<JSONObject> data); |
166 void scriptExecutionBlockedByCSP(const String& directiveText); | 171 void scriptExecutionBlockedByCSP(const String& directiveText); |
167 | 172 |
168 class Listener { | 173 class Listener { |
169 public: | 174 public: |
170 virtual ~Listener() { } | 175 virtual ~Listener() { } |
171 virtual void debuggerWasEnabled() = 0; | 176 virtual void debuggerWasEnabled() = 0; |
172 virtual void debuggerWasDisabled() = 0; | 177 virtual void debuggerWasDisabled() = 0; |
173 virtual void stepInto() = 0; | 178 virtual void stepInto() = 0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 String m_continueToLocationBreakpointId; | 246 String m_continueToLocationBreakpointId; |
242 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 247 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
243 RefPtr<JSONObject> m_breakAuxData; | 248 RefPtr<JSONObject> m_breakAuxData; |
244 bool m_javaScriptPauseScheduled; | 249 bool m_javaScriptPauseScheduled; |
245 Listener* m_listener; | 250 Listener* m_listener; |
246 | 251 |
247 int m_skipStepInCount; | 252 int m_skipStepInCount; |
248 bool m_skipAllPauses; | 253 bool m_skipAllPauses; |
249 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 254 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
250 AsyncCallStackTracker m_asyncCallStackTracker; | 255 AsyncCallStackTracker m_asyncCallStackTracker; |
| 256 PromiseTracker m_promiseTracker; |
251 }; | 257 }; |
252 | 258 |
253 } // namespace WebCore | 259 } // namespace WebCore |
254 | 260 |
255 | 261 |
256 #endif // !defined(InspectorDebuggerAgent_h) | 262 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |