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 a88f4d115fdb2a70fdaf014da78fa7c45c2d4951..16c0ee78f8ac74a113c751726bef7062ee912785 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -4676,6 +4676,20 @@ |
"returns": [ |
{ "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored window position and size are returned." } |
] |
+ }, |
+ { |
+ "name": "setDownloadBehavior", |
+ "description": "Set the behavior when downloading a file (headless chrome only).", |
+ "parameters": [ |
+ { "name": "behavior", "type": "string", "enum": ["deny", "allow"], "description": "Whether to allow all or deny all download requests." } |
+ ] |
+ }, |
+ { |
+ "name": "setDownloadDirectory", |
+ "description": "Set the directory path where downloaded fles will be saved (headless chrome only).", |
+ "parameters": [ |
+ { "name": "path", "type": "string", "description": "The default path to save downloaded files to." } |
+ ] |
} |
] |
}] |