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

Unified Diff: Source/core/inspector/InspectorInstrumentation.idl

Issue 177773002: Support Promises instrumentation on backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: V8PromiseCustom::setState -> (anonymous namespace)::setStateForPromise + REBASE Created 6 years, 9 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/InspectorInstrumentation.idl
diff --git a/Source/core/inspector/InspectorInstrumentation.idl b/Source/core/inspector/InspectorInstrumentation.idl
index a5f935d818c91e23a16bc650516a5a377d704c97..07211b8fa1787c3b9c32c381be417a5412e4a593 100644
--- a/Source/core/inspector/InspectorInstrumentation.idl
+++ b/Source/core/inspector/InspectorInstrumentation.idl
@@ -190,15 +190,6 @@ interface InspectorInstrumentation {
[Debugger, Inline=FastReturn]
void didDeliverMutationRecords(ExecutionContext*);
- [Debugger, Inline=FastReturn]
- void didPostPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*, bool isResolved);
-
- [Debugger, Inline=FastReturn]
- InspectorInstrumentationCookie willPerformPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*);
-
- [Debugger, Inline=FastReturn]
- void didPerformPromiseTask(const InspectorInstrumentationCookie&);
-
[Timeline, Inline=FastReturn]
InspectorInstrumentationCookie willEvaluateScript([Keep] LocalFrame*, const String& url, int lineNumber);
@@ -522,3 +513,31 @@ interface InspectorCanvasInstrumentation {
[Canvas]
ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, const ScriptObject&);
}
+
+
+interface InspectorPromiseInstrumentation {
+
+#include "bindings/v8/custom/V8PromiseCustom.h"
+#include "bindings/v8/ScriptObject.h"
+
+ [Debugger, Inline=FastReturn]
+ void didPostPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*, bool isResolved);
+
+ [Debugger, Inline=FastReturn]
+ InspectorInstrumentationCookie willPerformPromiseTask([Keep] ExecutionContext*, ExecutionContextTask*);
+
+ [Debugger, Inline=FastReturn]
+ void didPerformPromiseTask(const InspectorInstrumentationCookie&);
+
+ [Debugger, Inline=FastReturn]
+ bool isPromiseTrackerEnabled(ExecutionContext*);
+
+ [Debugger, Inline=FastReturn]
+ void didCreatePromise(ExecutionContext*, const ScriptObject& promise);
+
+ [Debugger, Inline=FastReturn]
+ void didUpdatePromiseParent(ExecutionContext*, const ScriptObject& promise, const ScriptObject& parentPromise);
+
+ [Debugger, Inline=FastReturn]
+ void didUpdatePromiseState(ExecutionContext*, const ScriptObject& promise, V8PromiseCustom::PromiseState, const ScriptValue& result);
+}
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorPromiseInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698