Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
index ee61904d0623f42ee37aed7cbec0ef15cc83a6b2..17bf15676566313b5da01e82baf3075d790d21a3 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -1110,7 +1110,7 @@ |
"type": "object", |
"description": "Information about the request initiator.", |
"properties": [ |
- { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." }, |
+ { "name": "type", "type": "string", "enum": ["parser", "script", "preload", "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 (0-based)." } |
@@ -1484,6 +1484,47 @@ |
{ "name": "data", "type": "string", "description": "Message content." } |
], |
"experimental": true |
+ }, |
+ { |
+ "name": "navigationPreloadSent", |
+ "description": "Fired when FetchEvent which has triggered a navigation preload request is received.", |
+ "parameters": [ |
+ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
+ { "name": "url", "type": "string", "description": "Navigation preload request URL." }, |
+ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
+ { "name": "wallTime", "$ref": "Timestamp", "description": "UTC Timestamp." }, |
+ { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." } |
+ ], |
+ "experimental": true |
+ }, |
+ { |
+ "name": "navigationPreloadResponseReceived", |
+ "description": "Fired when navigation preload response is available.", |
+ "parameters": [ |
+ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
+ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
+ { "name": "response", "$ref": "Response", "description": "Response data." } |
+ ], |
+ "experimental": true |
+ }, |
+ { |
+ "name": "navigationPreloadFailed", |
+ "description": "Fired when navigation preload request has failed.", |
+ "parameters": [ |
+ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
+ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
+ { "name": "errorMessage", "type": "string", "description": "Error message." } |
+ ], |
+ "experimental": true |
+ }, |
+ { |
+ "name": "navigationPreloadFinished", |
+ "description": "Fired when navigation preload request has finished loading.", |
+ "parameters": [ |
+ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
+ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." } |
+ ], |
+ "experimental": true |
} |
] |
}, |