Index: Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp |
index 7a6370391d0ea9c29bdd61470819e94f9160f707..2a1de30353bb193d84a25be5d7cc3d6ef4f7e0f2 100644 |
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -1,6 +1,6 @@ |
/* |
* Copyright (C) 2010 Apple Inc. All rights reserved. |
- * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
+ * Copyright (C) 2013 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -745,6 +745,12 @@ void InspectorDebuggerAgent::didHandleEvent() |
cancelPauseOnNextStatement(); |
} |
+void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderClient*, const AtomicString&, const KURL&, bool async, PassRefPtr<FormData>, const HTTPHeaderMap&, bool) |
+{ |
+ if (m_asyncCallStackTracker.isEnabled() && async) |
+ m_asyncCallStackTracker.willLoadXHR(xhr, scriptDebugServer().currentCallFrames()); |
+} |
+ |
void InspectorDebuggerAgent::pause(ErrorString*) |
{ |
if (m_javaScriptPauseScheduled) |