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

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, 7 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 0060d55ef89f30e039effde25b5e314377b9e6e6..913a1b220658881972013f68642f9bd870aebd75 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -4675,6 +4675,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." }
Eric Seckler 2017/05/17 09:44:45 drive-by (trying to verify that this aligns with f
+ ]
+ },
+ {
+ "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." }
+ ]
}
]
}]

Powered by Google App Engine
This is Rietveld 408576698