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

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2703603003: [Devtools] Changed protocol to use setBlockedURLs instead of add/remove (Closed)
Patch Set: changes Created 3 years, 9 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
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "2" }, 2 "version": { "major": "1", "minor": "2" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "experimental": true, 5 "experimental": 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 "description": "Returns content served for the given request.", 1180 "description": "Returns content served for the given request.",
1181 "parameters": [ 1181 "parameters": [
1182 { "name": "requestId", "$ref": "RequestId", "description": " Identifier of the network request to get content for." } 1182 { "name": "requestId", "$ref": "RequestId", "description": " Identifier of the network request to get content for." }
1183 ], 1183 ],
1184 "returns": [ 1184 "returns": [
1185 { "name": "body", "type": "string", "description": "Response body." }, 1185 { "name": "body", "type": "string", "description": "Response body." },
1186 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." } 1186 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
1187 ] 1187 ]
1188 }, 1188 },
1189 { 1189 {
1190 "name": "addBlockedURL", 1190 "name": "setBlockedURLs",
1191 "description": "Blocks specific URL from loading.", 1191 "description": "Blocks specific URL from loading.",
1192 "parameters": [ 1192 "parameters": [
1193 { "name": "url", "type": "string", "description": "URL to bl ock." } 1193 { "name": "url", "type": "array", "items": { "type": "string " }, "description": "URLs to block." }
1194 ], 1194 ],
1195 "experimental": true 1195 "experimental": true
1196 }, 1196 },
1197 {
1198 "name": "removeBlockedURL",
1199 "description": "Cancels blocking of a specific URL from loading. ",
1200 "parameters": [
1201 { "name": "url", "type": "string", "description": "URL to st op blocking." }
1202 ],
1203 "experimental": true
1204 },
1205 { 1197 {
1206 "name": "replayXHR", 1198 "name": "replayXHR",
1207 "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: met hod, url, async, request body, extra headers, withCredentials attribute, user, p assword.", 1199 "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: met hod, url, async, request body, extra headers, withCredentials attribute, user, p assword.",
1208 "parameters": [ 1200 "parameters": [
1209 { "name": "requestId", "$ref": "RequestId", "description": " Identifier of XHR to replay." } 1201 { "name": "requestId", "$ref": "RequestId", "description": " Identifier of XHR to replay." }
1210 ], 1202 ],
1211 "experimental": true 1203 "experimental": true
1212 }, 1204 },
1213 { 1205 {
1214 "name": "setMonitoringXHREnabled", 1206 "name": "setMonitoringXHREnabled",
(...skipping 3327 matching lines...) Expand 10 before | Expand all | Expand 10 after
4542 "name": "accepted", 4534 "name": "accepted",
4543 "description": "Informs that port was successfully bound and got a specified connection id.", 4535 "description": "Informs that port was successfully bound and got a specified connection id.",
4544 "parameters": [ 4536 "parameters": [
4545 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4537 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4546 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4538 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4547 ] 4539 ]
4548 } 4540 }
4549 ] 4541 ]
4550 }] 4542 }]
4551 } 4543 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698