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

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

Issue 74063002: DevTools: Support asynchronous call stacks on backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Async call stacks are off by default, added Debugger.enableAsyncCallStacks protocol command Created 7 years, 1 month 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/InspectorDebuggerAgent.h
diff --git a/Source/core/inspector/InspectorDebuggerAgent.h b/Source/core/inspector/InspectorDebuggerAgent.h
index a8498a20837aad939595d8e9e13dc0eac74680a6..b7275ff280ab4718297ca0dcaf990d32678d0fe8 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.h
+++ b/Source/core/inspector/InspectorDebuggerAgent.h
@@ -32,6 +32,7 @@
#include "InspectorFrontend.h"
#include "bindings/v8/ScriptState.h"
+#include "core/inspector/AsyncCallStackTracker.h"
#include "core/inspector/ConsoleAPITypes.h"
#include "core/inspector/InjectedScript.h"
#include "core/inspector/InspectorBaseAgent.h"
@@ -46,6 +47,7 @@
namespace WebCore {
+class Document;
class InjectedScriptManager;
class InspectorFrontend;
class InstrumentingAgents;
@@ -125,9 +127,17 @@ public:
virtual void setOverlayMessage(ErrorString*, const String*);
virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String& in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callFrame, const String* in_functionObjectId);
virtual void skipStackFrames(ErrorString*, const String* pattern);
+ virtual void enableAsyncCallStacks(ErrorString*, int depth);
void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
+ void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singleShot);
+ void didRemoveTimer(ExecutionContext*, int timerId);
+ bool willFireTimer(ExecutionContext*, int timerId);
void didFireTimer();
+ void didRequestAnimationFrame(Document*, int callbackId);
+ void didCancelAnimationFrame(Document*, int callbackId);
+ bool willFireAnimationFrame(Document*, int callbackId);
+ void didFireAnimationFrame();
void didHandleEvent();
bool canBreakProgram();
void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
@@ -179,6 +189,7 @@ private:
virtual void didParseSource(const String& scriptId, const Script&);
virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage);
+ virtual void didRequestAsyncCallFrames(ScriptValue callFrames);
void setPauseOnExceptionsImpl(ErrorString*, int);
@@ -187,6 +198,7 @@ private:
void clear();
bool assertPaused(ErrorString*);
void clearBreakDetails();
+ void requestAsyncCallFramesIfNeeded();
String sourceMapURLForScript(const Script&);
@@ -214,6 +226,7 @@ private:
int m_skipStepInCount;
bool m_skipAllPauses;
OwnPtr<RegularExpression> m_cachedSkipStackRegExp;
+ AsyncCallStackTracker m_asyncCallStackTracker;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698