| Index: third_party/WebKit/Source/core/inspector/protocol-1.1/Network.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol-1.1/Network.json b/third_party/WebKit/Source/core/inspector/protocol-1.1/Network.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5aca476823aad148c08ca0b48c7a7066a763c13e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol-1.1/Network.json
|
| @@ -0,0 +1,779 @@
|
| +{
|
| + "domain": "Network",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
|
| + "types": [
|
| + {
|
| + "id": "LoaderId",
|
| + "type": "string",
|
| + "description": "Unique loader identifier."
|
| + },
|
| + {
|
| + "id": "RequestId",
|
| + "type": "string",
|
| + "description": "Unique request identifier."
|
| + },
|
| + {
|
| + "id": "Timestamp",
|
| + "type": "number",
|
| + "description": "Number of seconds since epoch."
|
| + },
|
| + {
|
| + "id": "Headers",
|
| + "type": "object",
|
| + "description": "Request / response headers as keys / values of JSON object."
|
| + },
|
| + {
|
| + "id": "ResourceTiming",
|
| + "type": "object",
|
| + "description": "Timing information for the request.",
|
| + "properties": [
|
| + {
|
| + "name": "requestTime",
|
| + "type": "number",
|
| + "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime."
|
| + },
|
| + {
|
| + "name": "proxyStart",
|
| + "type": "number",
|
| + "description": "Started resolving proxy."
|
| + },
|
| + {
|
| + "name": "proxyEnd",
|
| + "type": "number",
|
| + "description": "Finished resolving proxy."
|
| + },
|
| + {
|
| + "name": "dnsStart",
|
| + "type": "number",
|
| + "description": "Started DNS address resolve."
|
| + },
|
| + {
|
| + "name": "dnsEnd",
|
| + "type": "number",
|
| + "description": "Finished DNS address resolve."
|
| + },
|
| + {
|
| + "name": "connectStart",
|
| + "type": "number",
|
| + "description": "Started connecting to the remote host."
|
| + },
|
| + {
|
| + "name": "connectEnd",
|
| + "type": "number",
|
| + "description": "Connected to the remote host."
|
| + },
|
| + {
|
| + "name": "sslStart",
|
| + "type": "number",
|
| + "description": "Started SSL handshake."
|
| + },
|
| + {
|
| + "name": "sslEnd",
|
| + "type": "number",
|
| + "description": "Finished SSL handshake."
|
| + },
|
| + {
|
| + "name": "sendStart",
|
| + "type": "number",
|
| + "description": "Started sending request."
|
| + },
|
| + {
|
| + "name": "sendEnd",
|
| + "type": "number",
|
| + "description": "Finished sending request."
|
| + },
|
| + {
|
| + "name": "receiveHeadersEnd",
|
| + "type": "number",
|
| + "description": "Finished receiving response headers."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "Request",
|
| + "type": "object",
|
| + "description": "HTTP request data.",
|
| + "properties": [
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "description": "Request URL."
|
| + },
|
| + {
|
| + "name": "method",
|
| + "type": "string",
|
| + "description": "HTTP request method."
|
| + },
|
| + {
|
| + "name": "headers",
|
| + "$ref": "Headers",
|
| + "description": "HTTP request headers."
|
| + },
|
| + {
|
| + "name": "postData",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "HTTP POST request data."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "Response",
|
| + "type": "object",
|
| + "description": "HTTP response data.",
|
| + "properties": [
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "description": "Response URL. This URL can be different from CachedResource.url in case of redirect."
|
| + },
|
| + {
|
| + "name": "status",
|
| + "type": "number",
|
| + "description": "HTTP response status code."
|
| + },
|
| + {
|
| + "name": "statusText",
|
| + "type": "string",
|
| + "description": "HTTP response status text."
|
| + },
|
| + {
|
| + "name": "headers",
|
| + "$ref": "Headers",
|
| + "description": "HTTP response headers."
|
| + },
|
| + {
|
| + "name": "headersText",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "HTTP response headers text."
|
| + },
|
| + {
|
| + "name": "mimeType",
|
| + "type": "string",
|
| + "description": "Resource mimeType as determined by the browser."
|
| + },
|
| + {
|
| + "name": "requestHeaders",
|
| + "$ref": "Headers",
|
| + "optional": true,
|
| + "description": "Refined HTTP request headers that were actually transmitted over the network."
|
| + },
|
| + {
|
| + "name": "requestHeadersText",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "HTTP request headers text."
|
| + },
|
| + {
|
| + "name": "connectionReused",
|
| + "type": "boolean",
|
| + "description": "Specifies whether physical connection was actually reused for this request."
|
| + },
|
| + {
|
| + "name": "connectionId",
|
| + "type": "number",
|
| + "description": "Physical connection id that was actually used for this request."
|
| + },
|
| + {
|
| + "name": "fromDiskCache",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Specifies that the request was served from the disk cache."
|
| + },
|
| + {
|
| + "name": "timing",
|
| + "$ref": "ResourceTiming",
|
| + "optional": true,
|
| + "description": "Timing information for the given request."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "WebSocketRequest",
|
| + "type": "object",
|
| + "description": "WebSocket request data.",
|
| + "hidden": true,
|
| + "properties": [
|
| + {
|
| + "name": "headers",
|
| + "$ref": "Headers",
|
| + "description": "HTTP response headers."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "WebSocketResponse",
|
| + "type": "object",
|
| + "description": "WebSocket response data.",
|
| + "hidden": true,
|
| + "properties": [
|
| + {
|
| + "name": "status",
|
| + "type": "number",
|
| + "description": "HTTP response status code."
|
| + },
|
| + {
|
| + "name": "statusText",
|
| + "type": "string",
|
| + "description": "HTTP response status text."
|
| + },
|
| + {
|
| + "name": "headers",
|
| + "$ref": "Headers",
|
| + "description": "HTTP response headers."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "WebSocketFrame",
|
| + "type": "object",
|
| + "description": "WebSocket frame data.",
|
| + "hidden": true,
|
| + "properties": [
|
| + {
|
| + "name": "opcode",
|
| + "type": "number",
|
| + "description": "WebSocket frame opcode."
|
| + },
|
| + {
|
| + "name": "mask",
|
| + "type": "boolean",
|
| + "description": "WebSocke frame mask."
|
| + },
|
| + {
|
| + "name": "payloadData",
|
| + "type": "string",
|
| + "description": "WebSocke frame payload data."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "CachedResource",
|
| + "type": "object",
|
| + "description": "Information about the cached resource.",
|
| + "properties": [
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "description": "Resource URL. This is the url of the original network request."
|
| + },
|
| + {
|
| + "name": "type",
|
| + "$ref": "Page.ResourceType",
|
| + "description": "Type of this resource."
|
| + },
|
| + {
|
| + "name": "response",
|
| + "$ref": "Response",
|
| + "optional": true,
|
| + "description": "Cached response data."
|
| + },
|
| + {
|
| + "name": "bodySize",
|
| + "type": "number",
|
| + "description": "Cached response body size."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "Initiator",
|
| + "type": "object",
|
| + "description": "Information about the request initiator.",
|
| + "properties": [
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "enum": [
|
| + "parser",
|
| + "script",
|
| + "other"
|
| + ],
|
| + "description": "Type of this initiator."
|
| + },
|
| + {
|
| + "name": "stackTrace",
|
| + "$ref": "Console.StackTrace",
|
| + "optional": true,
|
| + "description": "Initiator JavaScript stack trace, set for Script only."
|
| + },
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Initiator URL, set for Parser type only."
|
| + },
|
| + {
|
| + "name": "lineNumber",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Initiator line number, set for Parser type only."
|
| + }
|
| + ]
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "enable",
|
| + "description": "Enables network tracking, network events will now be delivered to the client."
|
| + },
|
| + {
|
| + "name": "disable",
|
| + "description": "Disables network tracking, prevents network events from being sent to the client."
|
| + },
|
| + {
|
| + "name": "setUserAgentOverride",
|
| + "description": "Allows overriding user agent with the given string.",
|
| + "parameters": [
|
| + {
|
| + "name": "userAgent",
|
| + "type": "string",
|
| + "description": "User agent to use."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "setExtraHTTPHeaders",
|
| + "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
|
| + "parameters": [
|
| + {
|
| + "name": "headers",
|
| + "$ref": "Headers",
|
| + "description": "Map with extra HTTP headers."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "getResponseBody",
|
| + "description": "Returns content served for the given request.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Identifier of the network request to get content for."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "body",
|
| + "type": "string",
|
| + "description": "Response body."
|
| + },
|
| + {
|
| + "name": "base64Encoded",
|
| + "type": "boolean",
|
| + "description": "True, if content was sent as base64."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "replayXHR",
|
| + "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Identifier of XHR to replay."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "canClearBrowserCache",
|
| + "description": "Tells whether clearing browser cache is supported.",
|
| + "returns": [
|
| + {
|
| + "name": "result",
|
| + "type": "boolean",
|
| + "description": "True if browser cache can be cleared."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "clearBrowserCache",
|
| + "description": "Clears browser cache."
|
| + },
|
| + {
|
| + "name": "canClearBrowserCookies",
|
| + "description": "Tells whether clearing browser cookies is supported.",
|
| + "returns": [
|
| + {
|
| + "name": "result",
|
| + "type": "boolean",
|
| + "description": "True if browser cookies can be cleared."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "clearBrowserCookies",
|
| + "description": "Clears browser cookies."
|
| + },
|
| + {
|
| + "name": "setCacheDisabled",
|
| + "parameters": [
|
| + {
|
| + "name": "cacheDisabled",
|
| + "type": "boolean",
|
| + "description": "Cache disabled state."
|
| + }
|
| + ],
|
| + "description": "Toggles ignoring cache for each request. If <code>true</code>, cache will not be used."
|
| + },
|
| + {
|
| + "name": "loadResourceForFrontend",
|
| + "async": true,
|
| + "parameters": [
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "description": "Frame to load the resource from."
|
| + },
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "description": "URL of the resource to load."
|
| + },
|
| + {
|
| + "name": "requestHeaders",
|
| + "$ref": "Network.Headers",
|
| + "optional": true,
|
| + "description": "Request headers."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "statusCode",
|
| + "type": "number",
|
| + "description": "HTTP status code."
|
| + },
|
| + {
|
| + "name": "responseHeaders",
|
| + "$ref": "Network.Headers",
|
| + "description": "Response headers."
|
| + },
|
| + {
|
| + "name": "content",
|
| + "type": "string",
|
| + "description": "Resource content."
|
| + }
|
| + ],
|
| + "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks.",
|
| + "hidden": true
|
| + }
|
| + ],
|
| + "events": [
|
| + {
|
| + "name": "requestWillBeSent",
|
| + "description": "Fired when page is about to send HTTP request.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "description": "Frame identifier.",
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "loaderId",
|
| + "$ref": "LoaderId",
|
| + "description": "Loader identifier."
|
| + },
|
| + {
|
| + "name": "documentURL",
|
| + "type": "string",
|
| + "description": "URL of the document this request is loaded for."
|
| + },
|
| + {
|
| + "name": "request",
|
| + "$ref": "Request",
|
| + "description": "Request data."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "initiator",
|
| + "$ref": "Initiator",
|
| + "description": "Request initiator."
|
| + },
|
| + {
|
| + "name": "redirectResponse",
|
| + "optional": true,
|
| + "$ref": "Response",
|
| + "description": "Redirect response data."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "requestServedFromCache",
|
| + "description": "Fired if request ended up loading from cache.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "responseReceived",
|
| + "description": "Fired when HTTP response is available.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "description": "Frame identifier.",
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "loaderId",
|
| + "$ref": "LoaderId",
|
| + "description": "Loader identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "type",
|
| + "$ref": "Page.ResourceType",
|
| + "description": "Resource type."
|
| + },
|
| + {
|
| + "name": "response",
|
| + "$ref": "Response",
|
| + "description": "Response data."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "dataReceived",
|
| + "description": "Fired when data chunk was received over the network.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "dataLength",
|
| + "type": "integer",
|
| + "description": "Data chunk length."
|
| + },
|
| + {
|
| + "name": "encodedDataLength",
|
| + "type": "integer",
|
| + "description": "Actual bytes received (might be less than dataLength for compressed encodings)."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "loadingFinished",
|
| + "description": "Fired when HTTP request has finished loading.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "loadingFailed",
|
| + "description": "Fired when HTTP request has failed to load.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "errorText",
|
| + "type": "string",
|
| + "description": "User friendly error message."
|
| + },
|
| + {
|
| + "name": "canceled",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "True if loading was canceled."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "webSocketWillSendHandshakeRequest",
|
| + "description": "Fired when WebSocket is about to initiate handshake.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "request",
|
| + "$ref": "WebSocketRequest",
|
| + "description": "WebSocket request data."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "webSocketHandshakeResponseReceived",
|
| + "description": "Fired when WebSocket handshake response becomes available.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "response",
|
| + "$ref": "WebSocketResponse",
|
| + "description": "WebSocket response data."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "webSocketCreated",
|
| + "description": "Fired upon WebSocket creation.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "description": "WebSocket request URL."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "webSocketClosed",
|
| + "description": "Fired when WebSocket is closed.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "webSocketFrameReceived",
|
| + "description": "Fired when WebSocket frame is received.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "response",
|
| + "$ref": "WebSocketFrame",
|
| + "description": "WebSocket response data."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "webSocketFrameError",
|
| + "description": "Fired when WebSocket frame error occurs.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "errorMessage",
|
| + "type": "string",
|
| + "description": "WebSocket frame error message."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "webSocketFrameSent",
|
| + "description": "Fired when WebSocket frame is sent.",
|
| + "parameters": [
|
| + {
|
| + "name": "requestId",
|
| + "$ref": "RequestId",
|
| + "description": "Request identifier."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp."
|
| + },
|
| + {
|
| + "name": "response",
|
| + "$ref": "WebSocketFrame",
|
| + "description": "WebSocket response data."
|
| + }
|
| + ],
|
| + "hidden": true
|
| + }
|
| + ]
|
| +}
|
|
|