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

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

Issue 433653003: Support Promises event-based instrumentation on backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove TODO Created 6 years, 5 months 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 56477d23ef2e7f231958478f785ad2727f0cc230..b957a7ea02bd509afb82d9418b599c25178bb0d4 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.h
+++ b/Source/core/inspector/InspectorDebuggerAgent.h
@@ -37,6 +37,7 @@
#include "core/inspector/ConsoleAPITypes.h"
#include "core/inspector/InjectedScript.h"
#include "core/inspector/InspectorBaseAgent.h"
+#include "core/inspector/PromiseTracker.h"
#include "core/inspector/ScriptBreakpoint.h"
#include "core/inspector/ScriptDebugListener.h"
#include "wtf/Forward.h"
@@ -225,6 +226,9 @@ private:
virtual void didParseSource(const String& scriptId, const Script&, CompileResult) OVERRIDE FINAL;
virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eventType, const String& eventName, int id) OVERRIDE FINAL;
+ virtual void didReceiveV8NewPromiseEvent(ExecutionContext*, v8::Handle<v8::Object> promise) OVERRIDE FINAL;
+ virtual void didReceiveV8UpdatePromiseEvent(ExecutionContext*, v8::Handle<v8::Object> promise, int status, v8::Handle<v8::Value>) OVERRIDE FINAL;
+ virtual void didReceiveV8ChainPromiseEvent(ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise) OVERRIDE FINAL;
void setPauseOnExceptionsImpl(ErrorString*, int);
@@ -263,6 +267,7 @@ private:
bool m_skipAllPauses;
OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
AsyncCallStackTracker m_asyncCallStackTracker;
+ PromiseTracker m_promiseTracker;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698