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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/core/inspector/PromiseTracker.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications." 10 "description": "Enables inspector domain notifications."
(...skipping 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 { "name": "compileError", "optional": true, "type": "object" , "properties": 3120 { "name": "compileError", "optional": true, "type": "object" , "properties":
3121 [ 3121 [
3122 { "name": "message", "type": "string", "description" : "Compiler error message" }, 3122 { "name": "message", "type": "string", "description" : "Compiler error message" },
3123 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" }, 3123 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" },
3124 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" } 3124 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" }
3125 ] 3125 ]
3126 } 3126 }
3127 ], 3127 ],
3128 "description": "Error data for setScriptSource command. compileE rror is a case type for uncompilable script source error.", 3128 "description": "Error data for setScriptSource command. compileE rror is a case type for uncompilable script source error.",
3129 "hidden": true 3129 "hidden": true
3130 },
3131 {
3132 "id": "PromiseDetails",
3133 "type": "object",
3134 "description": "Information about the promise.",
3135 "properties": [
3136 { "name": "id", "type": "integer", "description": "Unique id of the promise." },
3137 { "name": "status", "type": "string", "enum": ["pending", "r esolved", "rejected"], "description": "Status of the promise." },
3138 { "name": "parentId", "type": "integer", "optional": true, " description": "Id of the parent promise." },
3139 { "name": "callFrame", "$ref": "Console.CallFrame", "optiona l": true, "description": "Top call frame on promise creation."}
3140 ],
3141 "hidden": true
3130 } 3142 }
3131 ], 3143 ],
3132 "commands": [ 3144 "commands": [
3133 { 3145 {
3134 "name": "enable", 3146 "name": "enable",
3135 "description": "Enables debugger for the given page. Clients sho uld not assume that the debugging has been enabled until the result for this com mand is received." 3147 "description": "Enables debugger for the given page. Clients sho uld not assume that the debugging has been enabled until the result for this com mand is received."
3136 }, 3148 },
3137 { 3149 {
3138 "name": "disable", 3150 "name": "disable",
3139 "description": "Disables debugger for given page." 3151 "description": "Disables debugger for given page."
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
3402 "hidden": true, 3414 "hidden": true,
3403 "description": "Makes backend skip steps in the sources with nam es matching given pattern. VM will try leave blacklisted scripts by performing ' step in' several times, finally resorting to 'step out' if unsuccessful." 3415 "description": "Makes backend skip steps in the sources with nam es matching given pattern. VM will try leave blacklisted scripts by performing ' step in' several times, finally resorting to 'step out' if unsuccessful."
3404 }, 3416 },
3405 { 3417 {
3406 "name": "setAsyncCallStackDepth", 3418 "name": "setAsyncCallStackDepth",
3407 "parameters": [ 3419 "parameters": [
3408 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." } 3420 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." }
3409 ], 3421 ],
3410 "hidden": true, 3422 "hidden": true,
3411 "description": "Enables or disables async call stacks tracking." 3423 "description": "Enables or disables async call stacks tracking."
3424 },
3425 {
3426 "name": "enablePromiseTracker",
3427 "hidden": true,
3428 "description": "Enables promise tracking, information about <cod e>Promise</code>s created or updated will now be stored on the backend."
3429 },
3430 {
3431 "name": "disablePromiseTracker",
3432 "hidden": true,
3433 "description": "Disables promise tracking."
3434 },
3435 {
3436 "name": "getPromises",
3437 "returns": [
3438 { "name": "promises", "type": "array", "items": { "$ref": "P romiseDetails" }, "description": "Information about stored promises." }
3439 ],
3440 "hidden": true,
3441 "description": "Returns detailed information about all <code>Pro mise</code>s that were created or updated after the <code>enablePromiseTracker</ code> command, and have not been garbage collected yet."
3412 } 3442 }
3413 ], 3443 ],
3414 "events": [ 3444 "events": [
3415 { 3445 {
3416 "name": "globalObjectCleared", 3446 "name": "globalObjectCleared",
3417 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." 3447 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
3418 }, 3448 },
3419 { 3449 {
3420 "name": "scriptParsed", 3450 "name": "scriptParsed",
3421 "parameters": [ 3451 "parameters": [
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
4364 { 4394 {
4365 "name": "dataAvailable", 4395 "name": "dataAvailable",
4366 "parameters": [ 4396 "parameters": [
4367 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4397 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4368 ], 4398 ],
4369 "handlers": ["browser", "frontend"] 4399 "handlers": ["browser", "frontend"]
4370 } 4400 }
4371 ] 4401 ]
4372 }] 4402 }]
4373 } 4403 }
OLDNEW
« 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