Index: Source/core/inspector/InspectorInstrumentation.idl |
diff --git a/Source/core/inspector/InspectorInstrumentation.idl b/Source/core/inspector/InspectorInstrumentation.idl |
index a5f935d818c91e23a16bc650516a5a377d704c97..565f44b5d40970da114732e39bae7f0864190fa0 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,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 didCreatePromise([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise, V8PromiseCustom::PromiseState state = V8PromiseCustom::Pending); |
+ |
+ [Debugger, Inline=FastReturn] |
+ void didUpdatePromiseParent(ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise); |
+ |
+ [Debugger, Inline=FastReturn] |
+ void didUpdatePromiseState(ExecutionContext*, v8::Handle<v8::Object> promise, V8PromiseCustom::PromiseState state, v8::Handle<v8::Value> result); |
+} |