Chromium Code Reviews| 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 eb201e29eda75b0ae2574d9b30f6b8b4b0a7a4f0..a60595a3c126ee935279a8646ee1603fe82a9409 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -174,6 +174,13 @@ |
| { "name": "column", "type": "integer", "description": "Error column." } |
| ], |
| "hidden": true |
| + }, |
| + { |
| + "id": "NavigationThrottleResponse", |
| + "description": "Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.", |
| + "type": "string", |
| + "enum": ["Proceed", "Cancel", "CancelAndIgnore"], |
|
pfeldman
2016/07/07 17:26:18
We don't have guidelines for the enum literal nami
alex clarke (OOO till 29th)
2016/07/08 10:37:58
Acknowledged. Happy to change these if you can thi
|
| + "hidden": true |
| } |
| ], |
| "commands": [ |
| @@ -481,6 +488,25 @@ |
| "parameters": [ |
| { "name": "threshold", "type": "number", "description": "If set to a positive number, specifies threshold in seconds for input event latency that will cause a console warning about blocked event to be issued. If zero or less, the warning is disabled." } |
| ] |
| + }, |
| + { |
| + "name": "setNavigationThrottleEnabled", |
| + "parameters": [ |
| + { "name": "enabled", "type": "boolean" } |
| + ], |
| + "description": "Toggles navigation throttling which allows programatic control over navigation and redirect response.", |
| + "hidden": true, |
| + "handlers": ["browser"] |
| + }, |
| + { |
| + "name": "navigationThrottleResponse", |
|
pfeldman
2016/07/07 17:26:18
processNavigation
alex clarke (OOO till 29th)
2016/07/08 10:37:58
Done.
|
| + "parameters": [ |
| + { "name": "response", "$ref": "NavigationThrottleResponse" }, |
| + { "name": "navigationId", "type": "integer" } |
| + ], |
| + "description": "Should be sent in response to a shouldAllowNavigation or a shouldAllowRedirect event, telling the browser how to handle the navigation.", |
| + "hidden": true, |
| + "handlers": ["browser"] |
| } |
| ], |
| "events": [ |
| @@ -612,6 +638,28 @@ |
| "description": "Fired when interstitial page was hidden", |
| "hidden": true, |
| "handlers": ["browser"] |
| + }, |
| + { |
| + "name": "shouldAllowNavigation", |
|
pfeldman
2016/07/07 17:26:18
navigationRequested
alex clarke (OOO till 29th)
2016/07/08 10:37:58
Done.
|
| + "description": "Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until navigationThrottleResponse is called.", |
| + "parameters": [ |
| + { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that would navigate." }, |
| + { "name": "navigationId", "type": "integer" }, |
| + { "name": "url", "type": "string", "description": "URL of requested navigation." }, |
| + { "name": "rendererInitiated", "type": "boolean", "description": "Whether the navigation was initated by the renderer process." } |
| + ], |
| + "handlers": ["browser"] |
| + }, |
| + { |
| + "name": "shouldAllowRedirect", |
|
pfeldman
2016/07/07 17:26:18
redirectRequested
alex clarke (OOO till 29th)
2016/07/08 10:37:58
Done.
|
| + "description": "Fired when a server redirect is recieved by a navigation if navigation throttles are enabled. The navigation will be deferred until navigationThrottleResponse is called.", |
| + "parameters": [ |
| + { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that would navigate." }, |
| + { "name": "navigationId", "type": "integer" }, |
| + { "name": "url", "type": "string", "description": "URL of requested navigation." }, |
| + { "name": "rendererInitiated", "type": "boolean", "description": "Whether the navigation was initated by the renderer process." } |
| + ], |
| + "handlers": ["browser"] |
| } |
| ] |
| }, |