Index: third_party/WebKit/Source/core/inspector/protocol/Network.json |
diff --git a/third_party/WebKit/Source/core/inspector/protocol/Network.json b/third_party/WebKit/Source/core/inspector/protocol/Network.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a03a4cd842dbdaa054526ef4da83982abdf9615d |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/inspector/protocol/Network.json |
@@ -0,0 +1,1345 @@ |
+{ |
+ "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.", |
+ "dependencies": [ |
+ "Runtime", |
+ "Security" |
+ ], |
+ "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": "workerStart", |
+ "type": "number", |
+ "description": "Started running ServiceWorker.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "workerReady", |
+ "type": "number", |
+ "description": "Finished Starting ServiceWorker.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "sendStart", |
+ "type": "number", |
+ "description": "Started sending request." |
+ }, |
+ { |
+ "name": "sendEnd", |
+ "type": "number", |
+ "description": "Finished sending request." |
+ }, |
+ { |
+ "name": "pushStart", |
+ "type": "number", |
+ "description": "Time the server started pushing request.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "pushEnd", |
+ "type": "number", |
+ "description": "Time the server finished pushing request.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "receiveHeadersEnd", |
+ "type": "number", |
+ "description": "Finished receiving response headers." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "ResourcePriority", |
+ "type": "string", |
+ "enum": [ |
+ "VeryLow", |
+ "Low", |
+ "Medium", |
+ "High", |
+ "VeryHigh" |
+ ], |
+ "description": "Loading priority of a resource request." |
+ }, |
+ { |
+ "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." |
+ }, |
+ { |
+ "name": "mixedContentType", |
+ "optional": true, |
+ "type": "string", |
+ "enum": [ |
+ "blockable", |
+ "optionally-blockable", |
+ "none" |
+ ], |
+ "description": "The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/" |
+ }, |
+ { |
+ "name": "initialPriority", |
+ "$ref": "ResourcePriority", |
+ "description": "Priority of the resource request at the time request is sent." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "CertificateSubject", |
+ "type": "object", |
+ "description": "Subject of a certificate.", |
+ "properties": [ |
+ { |
+ "name": "name", |
+ "type": "string", |
+ "description": "Certificate subject name." |
+ }, |
+ { |
+ "name": "sanDnsNames", |
+ "type": "array", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "description": "Subject Alternative Name (SAN) DNS names." |
+ }, |
+ { |
+ "name": "sanIpAddresses", |
+ "type": "array", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "description": "Subject Alternative Name (SAN) IP addresses." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "CertificateDetails", |
+ "type": "object", |
+ "description": "Details about a request's certificate.", |
+ "properties": [ |
+ { |
+ "name": "subject", |
+ "$ref": "CertificateSubject", |
+ "description": "Certificate subject." |
+ }, |
+ { |
+ "name": "issuer", |
+ "type": "string", |
+ "description": "Name of the issuing CA." |
+ }, |
+ { |
+ "name": "validFrom", |
+ "$ref": "Timestamp", |
+ "description": "Certificate valid from date." |
+ }, |
+ { |
+ "name": "validTo", |
+ "$ref": "Timestamp", |
+ "description": "Certificate valid to (expiration) date" |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "CertificateValidationDetails", |
+ "type": "object", |
+ "description": "Details about the validation status of a request's certificate.", |
+ "properties": [ |
+ { |
+ "name": "numUnknownScts", |
+ "type": "integer", |
+ "description": "The number of SCTs from unknown logs." |
+ }, |
+ { |
+ "name": "numInvalidScts", |
+ "type": "integer", |
+ "description": "The number of invalid SCTs." |
+ }, |
+ { |
+ "name": "numValidScts", |
+ "type": "integer", |
+ "description": "The number of valid SCTs." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "SecurityDetails", |
+ "type": "object", |
+ "description": "Security details about a request.", |
+ "properties": [ |
+ { |
+ "name": "protocol", |
+ "type": "string", |
+ "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")." |
+ }, |
+ { |
+ "name": "keyExchange", |
+ "type": "string", |
+ "description": "Key Exchange used by the connection." |
+ }, |
+ { |
+ "name": "cipher", |
+ "type": "string", |
+ "description": "Cipher name." |
+ }, |
+ { |
+ "name": "mac", |
+ "type": "string", |
+ "optional": true, |
+ "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs." |
+ }, |
+ { |
+ "name": "certificateId", |
+ "$ref": "Security.CertificateId", |
+ "description": "Certificate ID value." |
+ }, |
+ { |
+ "name": "certificateValidationDetails", |
+ "$ref": "CertificateValidationDetails", |
+ "optional": true, |
+ "description": "Validation details for the request's certficate." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "BlockedReason", |
+ "type": "string", |
+ "description": "The reason why request was blocked.", |
+ "enum": [ |
+ "csp", |
+ "mixed-content", |
+ "origin", |
+ "inspector", |
+ "other" |
+ ], |
+ "hidden": true |
+ }, |
+ { |
+ "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": "remoteIPAddress", |
+ "type": "string", |
+ "optional": true, |
+ "hidden": true, |
+ "description": "Remote IP address." |
+ }, |
+ { |
+ "name": "remotePort", |
+ "type": "integer", |
+ "optional": true, |
+ "hidden": true, |
+ "description": "Remote port." |
+ }, |
+ { |
+ "name": "fromDiskCache", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "Specifies that the request was served from the disk cache." |
+ }, |
+ { |
+ "name": "fromServiceWorker", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "Specifies that the request was served from the ServiceWorker." |
+ }, |
+ { |
+ "name": "encodedDataLength", |
+ "type": "number", |
+ "optional": false, |
+ "description": "Total number of bytes received for this request so far." |
+ }, |
+ { |
+ "name": "timing", |
+ "$ref": "ResourceTiming", |
+ "optional": true, |
+ "description": "Timing information for the given request." |
+ }, |
+ { |
+ "name": "protocol", |
+ "type": "string", |
+ "optional": true, |
+ "description": "Protocol used to fetch this request." |
+ }, |
+ { |
+ "name": "securityState", |
+ "$ref": "Security.SecurityState", |
+ "description": "Security state of the request resource." |
+ }, |
+ { |
+ "name": "securityDetails", |
+ "$ref": "SecurityDetails", |
+ "optional": true, |
+ "description": "Security details for the request." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "WebSocketRequest", |
+ "type": "object", |
+ "description": "WebSocket request data.", |
+ "hidden": true, |
+ "properties": [ |
+ { |
+ "name": "headers", |
+ "$ref": "Headers", |
+ "description": "HTTP request 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." |
+ }, |
+ { |
+ "name": "headersText", |
+ "type": "string", |
+ "optional": true, |
+ "description": "HTTP response headers text." |
+ }, |
+ { |
+ "name": "requestHeaders", |
+ "$ref": "Headers", |
+ "optional": true, |
+ "description": "HTTP request headers." |
+ }, |
+ { |
+ "name": "requestHeadersText", |
+ "type": "string", |
+ "optional": true, |
+ "description": "HTTP request headers text." |
+ } |
+ ] |
+ }, |
+ { |
+ "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": "stack", |
+ "$ref": "Runtime.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." |
+ } |
+ ] |
+ }, |
+ { |
+ "id": "Cookie", |
+ "type": "object", |
+ "description": "Cookie object", |
+ "properties": [ |
+ { |
+ "name": "name", |
+ "type": "string", |
+ "description": "Cookie name." |
+ }, |
+ { |
+ "name": "value", |
+ "type": "string", |
+ "description": "Cookie value." |
+ }, |
+ { |
+ "name": "domain", |
+ "type": "string", |
+ "description": "Cookie domain." |
+ }, |
+ { |
+ "name": "path", |
+ "type": "string", |
+ "description": "Cookie path." |
+ }, |
+ { |
+ "name": "expires", |
+ "type": "number", |
+ "description": "Cookie expires." |
+ }, |
+ { |
+ "name": "size", |
+ "type": "integer", |
+ "description": "Cookie size." |
+ }, |
+ { |
+ "name": "httpOnly", |
+ "type": "boolean", |
+ "description": "True if cookie is http-only." |
+ }, |
+ { |
+ "name": "secure", |
+ "type": "boolean", |
+ "description": "True if cookie is secure." |
+ }, |
+ { |
+ "name": "session", |
+ "type": "boolean", |
+ "description": "True in case of session cookie." |
+ }, |
+ { |
+ "name": "sameSite", |
+ "type": "string", |
+ "optional": true, |
+ "enum": [ |
+ "Strict", |
+ "Lax" |
+ ], |
+ "description": "Represents the cookies' 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies" |
+ } |
+ ], |
+ "hidden": true |
+ } |
+ ], |
+ "commands": [ |
+ { |
+ "name": "enable", |
+ "description": "Enables network tracking, network events will now be delivered to the client.", |
+ "parameters": [ |
+ { |
+ "name": "maxTotalBufferSize", |
+ "type": "integer", |
+ "optional": true, |
+ "hidden": true, |
+ "description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc)." |
+ }, |
+ { |
+ "name": "maxResourceBufferSize", |
+ "type": "integer", |
+ "optional": true, |
+ "hidden": true, |
+ "description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc)." |
+ } |
+ ] |
+ }, |
+ { |
+ "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", |
+ "async": true, |
+ "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": "addBlockedURL", |
+ "description": "Blocks specific URL from loading.", |
+ "parameters": [ |
+ { |
+ "name": "url", |
+ "type": "string", |
+ "description": "URL to block." |
+ } |
+ ], |
+ "hidden": true |
+ }, |
+ { |
+ "name": "removeBlockedURL", |
+ "description": "Cancels blocking of a specific URL from loading.", |
+ "parameters": [ |
+ { |
+ "name": "url", |
+ "type": "string", |
+ "description": "URL to stop blocking." |
+ } |
+ ], |
+ "hidden": true |
+ }, |
+ { |
+ "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": "setMonitoringXHREnabled", |
+ "parameters": [ |
+ { |
+ "name": "enabled", |
+ "type": "boolean", |
+ "description": "Monitoring enabled state." |
+ } |
+ ], |
+ "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.", |
+ "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.", |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "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.", |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "getCookies", |
+ "returns": [ |
+ { |
+ "name": "cookies", |
+ "type": "array", |
+ "items": { |
+ "$ref": "Cookie" |
+ }, |
+ "description": "Array of cookie objects." |
+ } |
+ ], |
+ "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.", |
+ "handlers": [ |
+ "browser" |
+ ], |
+ "async": true, |
+ "hidden": true |
+ }, |
+ { |
+ "name": "deleteCookie", |
+ "parameters": [ |
+ { |
+ "name": "cookieName", |
+ "type": "string", |
+ "description": "Name of the cookie to remove." |
+ }, |
+ { |
+ "name": "url", |
+ "type": "string", |
+ "description": "URL to match cooke domain and path." |
+ } |
+ ], |
+ "description": "Deletes browser cookie with given name, domain and path.", |
+ "handlers": [ |
+ "browser" |
+ ], |
+ "async": true, |
+ "hidden": true |
+ }, |
+ { |
+ "name": "canEmulateNetworkConditions", |
+ "description": "Tells whether emulation of network conditions is supported.", |
+ "returns": [ |
+ { |
+ "name": "result", |
+ "type": "boolean", |
+ "description": "True if emulation of network conditions is supported." |
+ } |
+ ], |
+ "hidden": true, |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "emulateNetworkConditions", |
+ "description": "Activates emulation of network conditions.", |
+ "parameters": [ |
+ { |
+ "name": "offline", |
+ "type": "boolean", |
+ "description": "True to emulate internet disconnection." |
+ }, |
+ { |
+ "name": "latency", |
+ "type": "number", |
+ "description": "Additional latency (ms)." |
+ }, |
+ { |
+ "name": "downloadThroughput", |
+ "type": "number", |
+ "description": "Maximal aggregated download throughput." |
+ }, |
+ { |
+ "name": "uploadThroughput", |
+ "type": "number", |
+ "description": "Maximal aggregated upload throughput." |
+ } |
+ ], |
+ "hidden": true, |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "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": "setBypassServiceWorker", |
+ "parameters": [ |
+ { |
+ "name": "bypass", |
+ "type": "boolean", |
+ "description": "Bypass service worker and load from network." |
+ } |
+ ], |
+ "hidden": true, |
+ "description": "Toggles ignoring of service worker for each request." |
+ }, |
+ { |
+ "name": "setDataSizeLimitsForTest", |
+ "parameters": [ |
+ { |
+ "name": "maxTotalSize", |
+ "type": "integer", |
+ "description": "Maximum total buffer size." |
+ }, |
+ { |
+ "name": "maxResourceSize", |
+ "type": "integer", |
+ "description": "Maximum per-resource size." |
+ } |
+ ], |
+ "description": "For testing.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "getCertificateDetails", |
+ "description": "Returns details for the given certificate.", |
+ "parameters": [ |
+ { |
+ "name": "certificateId", |
+ "$ref": "Security.CertificateId", |
+ "description": "ID of the certificate to get details for." |
+ } |
+ ], |
+ "returns": [ |
+ { |
+ "name": "result", |
+ "$ref": "CertificateDetails", |
+ "description": "Certificate details." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ }, |
+ { |
+ "name": "showCertificateViewer", |
+ "description": "Displays native dialog with the certificate details.", |
+ "parameters": [ |
+ { |
+ "name": "certificateId", |
+ "$ref": "Security.CertificateId", |
+ "description": "Certificate id." |
+ } |
+ ], |
+ "handlers": [ |
+ "browser" |
+ ] |
+ } |
+ ], |
+ "events": [ |
+ { |
+ "name": "resourceChangedPriority", |
+ "description": "Fired when resource loading priority is changed", |
+ "parameters": [ |
+ { |
+ "name": "requestId", |
+ "$ref": "RequestId", |
+ "description": "Request identifier." |
+ }, |
+ { |
+ "name": "newPriority", |
+ "$ref": "ResourcePriority", |
+ "description": "New priority" |
+ }, |
+ { |
+ "name": "timestamp", |
+ "$ref": "Timestamp", |
+ "description": "Timestamp." |
+ } |
+ ], |
+ "hidden": true |
+ }, |
+ { |
+ "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": "wallTime", |
+ "$ref": "Timestamp", |
+ "hidden": true, |
+ "description": "UTC Timestamp." |
+ }, |
+ { |
+ "name": "initiator", |
+ "$ref": "Initiator", |
+ "description": "Request initiator." |
+ }, |
+ { |
+ "name": "redirectResponse", |
+ "optional": true, |
+ "$ref": "Response", |
+ "description": "Redirect response data." |
+ }, |
+ { |
+ "name": "type", |
+ "$ref": "Page.ResourceType", |
+ "optional": true, |
+ "hidden": true, |
+ "description": "Type of this resource." |
+ } |
+ ] |
+ }, |
+ { |
+ "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": "encodedDataLength", |
+ "type": "number", |
+ "description": "Total number of bytes received for this request." |
+ } |
+ ] |
+ }, |
+ { |
+ "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": "type", |
+ "$ref": "Page.ResourceType", |
+ "description": "Resource type." |
+ }, |
+ { |
+ "name": "errorText", |
+ "type": "string", |
+ "description": "User friendly error message." |
+ }, |
+ { |
+ "name": "canceled", |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "True if loading was canceled." |
+ }, |
+ { |
+ "name": "blockedReason", |
+ "$ref": "BlockedReason", |
+ "optional": true, |
+ "description": "The reason why loading was blocked, if any.", |
+ "hidden": true |
+ } |
+ ] |
+ }, |
+ { |
+ "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": "wallTime", |
+ "$ref": "Timestamp", |
+ "hidden": true, |
+ "description": "UTC 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 |
+ }, |
+ { |
+ "name": "eventSourceMessageReceived", |
+ "description": "Fired when EventSource message is received.", |
+ "parameters": [ |
+ { |
+ "name": "requestId", |
+ "$ref": "RequestId", |
+ "description": "Request identifier." |
+ }, |
+ { |
+ "name": "timestamp", |
+ "$ref": "Timestamp", |
+ "description": "Timestamp." |
+ }, |
+ { |
+ "name": "eventName", |
+ "type": "string", |
+ "description": "Message type." |
+ }, |
+ { |
+ "name": "eventId", |
+ "type": "string", |
+ "description": "Message identifier." |
+ }, |
+ { |
+ "name": "data", |
+ "type": "string", |
+ "description": "Message content." |
+ } |
+ ], |
+ "hidden": true |
+ } |
+ ] |
+} |