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

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: Address comments + REBASE Created 6 years, 3 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
« no previous file with comments | « Source/core/inspector/PromiseTracker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index bbaaea238a9be6bd63875df4a426f3e21fd5522c..82fff8a17e02de6a376ada176334b94c7918fb70 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 the promise.",
+ "properties": [
+ { "name": "id", "type": "integer", "description": "Unique id of the promise." },
+ { "name": "status", "type": "string", "enum": ["pending", "resolved", "rejected"], "description": "Status of the promise." },
+ { "name": "parentId", "type": "integer", "optional": true, "description": "Id of the parent promise." },
+ { "name": "callFrame", "$ref": "Console.CallFrame", "optional": true, "description": "Top call frame on promise creation."}
+ ],
+ "hidden": true
}
],
"commands": [
@@ -3409,6 +3421,24 @@
],
"hidden": true,
"description": "Enables or disables async call stacks tracking."
+ },
+ {
+ "name": "enablePromiseTracker",
+ "hidden": true,
+ "description": "Enables promise tracking, information about <code>Promise</code>s created or updated will now be stored on the backend."
+ },
+ {
+ "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": "Returns detailed information about all <code>Promise</code>s that were created or updated after the <code>enablePromiseTracker</code> command, and have not been garbage collected yet."
}
],
"events": [
« no previous file with comments | « Source/core/inspector/PromiseTracker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698