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

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: Address review comments + track Promise result Created 6 years, 10 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 dc929693ed7829b5172d495439d58da9e523262a..5e932d82da2c926280d88b3b2d8b0015cdfe0afb 100644
--- a/Source/core/inspector/InspectorInstrumentation.idl
+++ b/Source/core/inspector/InspectorInstrumentation.idl
@@ -202,15 +202,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] Frame*, const String& url, int lineNumber);
@@ -536,3 +527,28 @@ interface InspectorCanvasInstrumentation {
[Canvas]
ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, const ScriptObject&);
}
+
+
+interface InspectorPromiseInstrumentation {
+
+#include <v8.h>
+#include "bindings/v8/custom/V8PromiseCustom.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]
+ void addPromise([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise, V8PromiseCustom::PromiseState state = V8PromiseCustom::Pending);
aandrey 2014/02/26 16:11:30 addPromise -> didCreatePromise
Alexandra Mikhaylova 2014/02/28 13:52:05 Done.
+
+ [Debugger, Inline=FastReturn]
+ void setPromiseParent([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise);
aandrey 2014/02/26 16:11:30 didUpdatePromiseParent
Alexandra Mikhaylova 2014/02/28 13:52:05 Done.
+
+ [Debugger, Inline=FastReturn]
+ void setPromiseStateAndResult([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Value> result, V8PromiseCustom::PromiseState state);
aandrey 2014/02/26 16:11:30 didUpdatePromiseState
Alexandra Mikhaylova 2014/02/28 13:52:05 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698