Index: Source/core/inspector/AsyncCallStackTracker.h |
diff --git a/Source/core/inspector/AsyncCallStackTracker.h b/Source/core/inspector/AsyncCallStackTracker.h |
index e032134eeda9f01c1bf7576ac49ca418d53209cc..95a9425edaa357ecf6115484b540788033748d95 100644 |
--- a/Source/core/inspector/AsyncCallStackTracker.h |
+++ b/Source/core/inspector/AsyncCallStackTracker.h |
@@ -41,6 +41,8 @@ |
namespace WebCore { |
+class EventListener; |
+class EventTarget; |
class ExecutionContext; |
class AsyncCallStackTracker { |
@@ -83,11 +85,17 @@ public: |
void didCancelAnimationFrame(ExecutionContext*, int callbackId); |
void willFireAnimationFrame(ExecutionContext*, int callbackId); |
+ void didAddEventListener(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture, const ScriptValue& callFrames); |
+ void didRemoveEventListener(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture); |
+ void didRemoveAllEventListeners(EventTarget*); |
+ void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture); |
+ |
void didFireAsyncCall(); |
void clear(); |
private: |
PassRefPtr<AsyncCallChain> createAsyncCallChain(const String& description, const ScriptValue& callFrames); |
+ void setCurrentAsyncCallChain(PassRefPtr<AsyncCallChain>); |
static void ensureMaxAsyncCallChainDepth(AsyncCallChain*, unsigned); |
static bool validateCallFrames(const ScriptValue& callFrames); |
@@ -97,6 +105,7 @@ private: |
unsigned m_maxAsyncCallStackDepth; |
RefPtr<AsyncCallChain> m_currentAsyncCallChain; |
+ unsigned m_nestedAsyncCallCount; |
HashMap<ExecutionContext*, ExecutionContextData*> m_executionContextDataMap; |
}; |