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

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: Fix in printing NULL parent promises 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..b8983ad7f17fec52d385bcc92b91ebbbec1001dc 100644
--- a/Source/core/inspector/InspectorInstrumentation.idl
+++ b/Source/core/inspector/InspectorInstrumentation.idl
@@ -62,6 +62,8 @@
interface InspectorInstrumentation {
+#include <v8.h>
aandrey 2014/02/25 12:36:07 introduce new interface InspectorPromiseInstrument
Alexandra Mikhaylova 2014/02/26 14:08:41 Done.
+#include "bindings/v8/custom/V8PromiseCustom.h"
#include "core/dom/PseudoElement.h"
[Page, Inspector, PageDebugger, PageRuntime]
@@ -211,6 +213,15 @@ interface InspectorInstrumentation {
[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);
+
+ [Debugger, Inline=FastReturn]
+ void updatePromiseParent([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> newParentPromise);
aandrey 2014/02/25 12:36:07 newParentPromise -> parent
Alexandra Mikhaylova 2014/02/26 14:08:41 I've done some renaming.
+
+ [Debugger, Inline=FastReturn]
+ void updatePromiseState([Keep] ExecutionContext*, v8::Handle<v8::Object> promise, V8PromiseCustom::PromiseState newState);
+
[Timeline, Inline=FastReturn]
InspectorInstrumentationCookie willEvaluateScript([Keep] Frame*, const String& url, int lineNumber);

Powered by Google App Engine
This is Rietveld 408576698