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 1fdc86b2b12450769bad98ef00475e7cad77c686..89e15560aec63b71ef2d2b44f231195ad9799c2b 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", |
|
pfeldman
2017/06/05 16:07:30
You could make directory an optional parameter of
|
| + "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).", |
|
pfeldman
2017/06/05 16:07:30
fles -> files
Oleg Sushkov
2017/06/06 03:36:54
done
|
| + "parameters": [ |
| + { "name": "path", "type": "string", "description": "The default path to save downloaded files to." } |
| + ] |
| } |
| ] |
| }] |