Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Unified Diff: Source/core/inspector/AsyncCallStackTracker.h

Issue 118293002: DevTools: Support XHR async call stacks in the debugger. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/AsyncCallStackTracker.h
diff --git a/Source/core/inspector/AsyncCallStackTracker.h b/Source/core/inspector/AsyncCallStackTracker.h
index 680098c605615eb3eaca060ceb39f1318016e519..b8616ca0396406317ec66404a0ce2d0e58d72325 100644
--- a/Source/core/inspector/AsyncCallStackTracker.h
+++ b/Source/core/inspector/AsyncCallStackTracker.h
@@ -44,6 +44,7 @@ namespace WebCore {
class EventListener;
class EventTarget;
class ExecutionContext;
+class XMLHttpRequest;
class AsyncCallStackTracker {
WTF_MAKE_NONCOPYABLE(AsyncCallStackTracker);
@@ -90,12 +91,17 @@ public:
void didRemoveAllEventListeners(EventTarget*);
void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture);
+ void willLoadXHR(XMLHttpRequest*, const ScriptValue& callFrames);
+
void didFireAsyncCall();
void clear();
private:
+ void willHandleXHREvent(XMLHttpRequest*, EventTarget*, const AtomicString& eventType);
+
PassRefPtr<AsyncCallChain> createAsyncCallChain(const String& description, const ScriptValue& callFrames);
void setCurrentAsyncCallChain(PassRefPtr<AsyncCallChain>);
+ void clearCurrentAsyncCallChain();
static void ensureMaxAsyncCallChainDepth(AsyncCallChain*, unsigned);
static bool validateCallFrames(const ScriptValue& callFrames);
« no previous file with comments | « LayoutTests/inspector/debugger/async-callstack-xhrs-expected.txt ('k') | Source/core/inspector/AsyncCallStackTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698