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

Unified Diff: Source/devtools/protocol.json

Issue 529723002: [WIP] Protocol for sending information about Promises to frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index f2c17653080960fc580a2ab333a40fbffddd6714..2650eb6f2913b9278294d56278c9a3684c8a1b87 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -3127,6 +3127,18 @@
],
"description": "Error data for setScriptSource command. compileError is a case type for uncompilable script source error.",
"hidden": true
+ },
+ {
+ "id": "PromiseDetails",
+ "type": "object",
+ "description": "Information about a tracked promise.",
aandrey 2014/09/01 13:39:27 "a tracked" -> "the"
Alexandra Mikhaylova 2014/09/02 11:39:29 Done.
+ "properties": [
+ { "name": "id", "type": "number", "description": "Unique id of the promise." },
+ { "name": "parentId", "type": "number", "description": "Id of the parent promise." },
aandrey 2014/09/01 13:39:27 optional
Alexandra Mikhaylova 2014/09/02 11:39:29 Done.
+ { "name": "status", "type": "number", "description": "Status of the promise." },
aandrey 2014/09/01 13:39:27 say more in description about possible values
Alexandra Mikhaylova 2014/09/02 11:39:29 Done.
+ { "name": "callFrame", "$ref": "Console.CallFrame", "description": "Top call frame on promise creation."}
aandrey 2014/09/01 13:39:27 optional
Alexandra Mikhaylova 2014/09/02 11:39:29 Done.
+ ],
+ "hidden": true
}
],
"commands": [
@@ -3408,6 +3420,24 @@
],
"hidden": true,
"description": "Enables or disables async call stacks tracking."
+ },
+ {
+ "name": "enablePromiseTracker",
+ "hidden": true,
+ "description": "Enables promise tracking."
+ },
+ {
+ "name": "disablePromiseTracker",
+ "hidden": true,
+ "description": "Disables promise tracking."
+ },
+ {
+ "name": "getPromises",
+ "returns": [
+ { "name": "promises", "type": "array", "items": { "$ref": "PromiseDetails" }, "description": "Information about stored promises." }
+ ],
+ "hidden": true,
+ "description": "Pulls information about stored promises."
aandrey 2014/09/01 13:39:27 "Returns detailed information about all <code>Prom
Alexandra Mikhaylova 2014/09/02 11:39:29 Done.
}
],
"events": [
« Source/core/inspector/PromiseTracker.cpp ('K') | « Source/core/inspector/PromiseTracker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698