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 1fdc86b2b12450769bad98ef00475e7cad77c686..b4ee5ac1722dc61c66cecc8e9a4d53ea86ceabfb 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -4737,6 +4737,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 files will be saved (headless chrome only).", |
+ "parameters": [ |
+ { "name": "path", "type": "string", "description": "The default path to save downloaded files to." } |
+ ] |
} |
] |
}] |