Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 946 "id": "LoaderId", | 946 "id": "LoaderId", |
| 947 "type": "string", | 947 "type": "string", |
| 948 "description": "Unique loader identifier." | 948 "description": "Unique loader identifier." |
| 949 }, | 949 }, |
| 950 { | 950 { |
| 951 "id": "RequestId", | 951 "id": "RequestId", |
| 952 "type": "string", | 952 "type": "string", |
| 953 "description": "Unique request identifier." | 953 "description": "Unique request identifier." |
| 954 }, | 954 }, |
| 955 { | 955 { |
| 956 "id": "InterceptId", | |
| 957 "type": "string", | |
| 958 "description": "Unique intercepted request identifier." | |
| 959 }, | |
| 960 { | |
| 961 "id": "ErrorReason", | |
| 962 "type": "string", | |
| 963 "enum": ["Failed", "Aborted", "TimedOut", "AccessDenied", "Conne ctionClosed", "ConnectionReset", "ConnectionRefused", "ConnectionAborted", "Conn ectionFailed", "NameNotResolved", "InternetDisconnected", "AddressUnreachable"], | |
| 964 "description": "Network level fetch failure reason." | |
| 965 }, | |
| 966 { | |
| 956 "id": "Timestamp", | 967 "id": "Timestamp", |
| 957 "type": "number", | 968 "type": "number", |
| 958 "description": "Number of seconds since epoch." | 969 "description": "Number of seconds since epoch." |
| 959 }, | 970 }, |
| 960 { | 971 { |
| 961 "id": "Headers", | 972 "id": "Headers", |
| 962 "type": "object", | 973 "type": "object", |
| 963 "description": "Request / response headers as keys / values of J SON object." | 974 "description": "Request / response headers as keys / values of J SON object." |
| 964 }, | 975 }, |
| 965 { | 976 { |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1336 { | 1347 { |
| 1337 "name": "getCertificate", | 1348 "name": "getCertificate", |
| 1338 "description": "Returns the DER-encoded certificate.", | 1349 "description": "Returns the DER-encoded certificate.", |
| 1339 "parameters": [ | 1350 "parameters": [ |
| 1340 { "name": "origin", "type": "string", "description": "Origin to get certificate for." } | 1351 { "name": "origin", "type": "string", "description": "Origin to get certificate for." } |
| 1341 ], | 1352 ], |
| 1342 "returns": [ | 1353 "returns": [ |
| 1343 { "name": "tableNames", "type": "array", "items": { "type": "string" } } | 1354 { "name": "tableNames", "type": "array", "items": { "type": "string" } } |
| 1344 ], | 1355 ], |
| 1345 "experimental": true | 1356 "experimental": true |
| 1357 }, | |
| 1358 { | |
| 1359 "name": "enableFetchInterception", | |
| 1360 "parameters": [ | |
| 1361 { "name": "enabled", "type": "boolean", "description": "Whet her or not HTTP requests should be intercepted and Network.interceptedRequest ev ents sent." } | |
|
Sami
2017/03/22 17:00:46
Did we decide if this can be disabled after being
| |
| 1362 ], | |
| 1363 "experimental": true | |
| 1364 }, | |
| 1365 { | |
| 1366 "name": "allowRequest", | |
| 1367 "description": "Response to Network.interceptedRequest which all ows the request to proceed unchanged.", | |
| 1368 "parameters": [ | |
| 1369 { "name": "id", "$ref": "InterceptId" } | |
| 1370 ], | |
| 1371 "experimental": true | |
| 1372 }, | |
| 1373 { | |
| 1374 "name": "blockRequest", | |
| 1375 "description": "Response to Network.interceptedRequest which cau ses the request to fail.", | |
| 1376 "parameters": [ | |
| 1377 { "name": "id", "$ref": "InterceptId" }, | |
| 1378 { "name": "errorReason", "$ref": "ErrorReason" } | |
| 1379 ], | |
| 1380 "experimental": true | |
| 1381 }, | |
| 1382 { | |
| 1383 "name": "modifyRequest", | |
| 1384 "description": "Response to Network.interceptedRequest which mod ifies any or all fetch parameters before allowing the request to proceed.", | |
| 1385 "parameters": [ | |
| 1386 { "name": "id", "$ref": "InterceptId" }, | |
| 1387 { "name": "url", "type": "string", "optional": true }, | |
| 1388 { "name": "method", "type": "string", "optional": true }, | |
| 1389 { "name": "postData", "type": "string", "optional": true }, | |
| 1390 { "name": "headers", "$ref": "Headers", "optional": true } | |
| 1391 ], | |
| 1392 "experimental": true | |
| 1393 }, | |
| 1394 { | |
| 1395 "name": "mockResponse", | |
| 1396 "description": "Response to Network.interceptedRequest which mak es the request complete with the provided mock response.", | |
| 1397 "parameters": [ | |
| 1398 { "name": "id", "$ref": "InterceptId" }, | |
| 1399 { "name": "rawResponse", "type": "string" } | |
|
Sami
2017/03/22 17:00:46
Might be worth mentioning that this should contain
| |
| 1400 ], | |
| 1401 "experimental": true | |
| 1346 } | 1402 } |
| 1347 ], | 1403 ], |
| 1348 "events": [ | 1404 "events": [ |
| 1349 { | 1405 { |
| 1350 "name": "resourceChangedPriority", | 1406 "name": "resourceChangedPriority", |
| 1351 "description": "Fired when resource loading priority is changed" , | 1407 "description": "Fired when resource loading priority is changed" , |
| 1352 "parameters": [ | 1408 "parameters": [ |
| 1353 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1409 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
| 1354 { "name": "newPriority", "$ref": "ResourcePriority", "descri ption": "New priority" }, | 1410 { "name": "newPriority", "$ref": "ResourcePriority", "descri ption": "New priority" }, |
| 1355 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." } | 1411 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." } |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 1381 }, | 1437 }, |
| 1382 { | 1438 { |
| 1383 "name": "responseReceived", | 1439 "name": "responseReceived", |
| 1384 "description": "Fired when HTTP response is available.", | 1440 "description": "Fired when HTTP response is available.", |
| 1385 "parameters": [ | 1441 "parameters": [ |
| 1386 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1442 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
| 1387 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "experimental": true }, | 1443 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "experimental": true }, |
| 1388 { "name": "loaderId", "$ref": "LoaderId", "description": "Lo ader identifier." }, | 1444 { "name": "loaderId", "$ref": "LoaderId", "description": "Lo ader identifier." }, |
| 1389 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, | 1445 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, |
| 1390 { "name": "type", "$ref": "Page.ResourceType", "description" : "Resource type." }, | 1446 { "name": "type", "$ref": "Page.ResourceType", "description" : "Resource type." }, |
| 1391 { "name": "response", "$ref": "Response", "description": "Re sponse data." } | 1447 { "name": "response", "$ref": "Response", "description": "Re sponse data." }, |
| 1448 { "name": "interceptId", "$ref": "InterceptId", "optional": true, "experimental": true } | |
| 1392 ] | 1449 ] |
| 1393 }, | 1450 }, |
| 1394 { | 1451 { |
| 1395 "name": "dataReceived", | 1452 "name": "dataReceived", |
| 1396 "description": "Fired when data chunk was received over the netw ork.", | 1453 "description": "Fired when data chunk was received over the netw ork.", |
| 1397 "parameters": [ | 1454 "parameters": [ |
| 1398 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1455 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
| 1399 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, | 1456 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, |
| 1400 { "name": "dataLength", "type": "integer", "description": "D ata chunk length." }, | 1457 { "name": "dataLength", "type": "integer", "description": "D ata chunk length." }, |
| 1401 { "name": "encodedDataLength", "type": "integer", "descripti on": "Actual bytes received (might be less than dataLength for compressed encodi ngs)." } | 1458 { "name": "encodedDataLength", "type": "integer", "descripti on": "Actual bytes received (might be less than dataLength for compressed encodi ngs)." } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1496 "name": "eventSourceMessageReceived", | 1553 "name": "eventSourceMessageReceived", |
| 1497 "description": "Fired when EventSource message is received.", | 1554 "description": "Fired when EventSource message is received.", |
| 1498 "parameters": [ | 1555 "parameters": [ |
| 1499 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1556 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
| 1500 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, | 1557 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, |
| 1501 { "name": "eventName", "type": "string", "description": "Mes sage type." }, | 1558 { "name": "eventName", "type": "string", "description": "Mes sage type." }, |
| 1502 { "name": "eventId", "type": "string", "description": "Messa ge identifier." }, | 1559 { "name": "eventId", "type": "string", "description": "Messa ge identifier." }, |
| 1503 { "name": "data", "type": "string", "description": "Message content." } | 1560 { "name": "data", "type": "string", "description": "Message content." } |
| 1504 ], | 1561 ], |
| 1505 "experimental": true | 1562 "experimental": true |
| 1563 }, | |
| 1564 { | |
| 1565 "name": "interceptedRequest", | |
| 1566 "description": "Details of an intercepted HTTP request, which mu st be either allowed, blocked, modified or mocked.", | |
| 1567 "parameters": [ | |
| 1568 { "name": "id", "$ref": "InterceptId", "description": "Descr iption unless part of a redirect chain, this id will be unique." }, | |
| 1569 { "name": "request", "$ref": "Request" } | |
| 1570 ], | |
| 1571 "experimental": true | |
| 1572 }, | |
| 1573 { | |
| 1574 "name": "interceptedRedirect", | |
| 1575 "description": "Details of an intercepted HTTP redirect, which m ust be either allowed, blocked, modified or mocked.", | |
| 1576 "parameters": [ | |
| 1577 { "name": "id", "$ref": "InterceptId" }, | |
| 1578 { "name": "responseHeaders", "$ref": "Headers", "description ": "HTTP response headers." }, | |
| 1579 { "name": "responseStatusCode", "type": "integer", "descript ion": "HTTP response code."}, | |
| 1580 { "name": "redirectUrl", "type": "string" } | |
| 1581 ], | |
| 1582 "experimental": true | |
| 1506 } | 1583 } |
| 1507 ] | 1584 ] |
| 1508 }, | 1585 }, |
| 1509 { | 1586 { |
| 1510 "domain": "Database", | 1587 "domain": "Database", |
| 1511 "experimental": true, | 1588 "experimental": true, |
| 1512 "types": [ | 1589 "types": [ |
| 1513 { | 1590 { |
| 1514 "id": "DatabaseId", | 1591 "id": "DatabaseId", |
| 1515 "type": "string", | 1592 "type": "string", |
| (...skipping 3030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4546 "name": "accepted", | 4623 "name": "accepted", |
| 4547 "description": "Informs that port was successfully bound and got a specified connection id.", | 4624 "description": "Informs that port was successfully bound and got a specified connection id.", |
| 4548 "parameters": [ | 4625 "parameters": [ |
| 4549 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, | 4626 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, |
| 4550 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } | 4627 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } |
| 4551 ] | 4628 ] |
| 4552 } | 4629 } |
| 4553 ] | 4630 ] |
| 4554 }] | 4631 }] |
| 4555 } | 4632 } |
| OLD | NEW |