Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2886693002: initial version of the headless download manager delegate
Patch Set: initial version of the headless download manager delegate Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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." }
+ ]
}
]
}]

Powered by Google App Engine
This is Rietveld 408576698