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

Unified Diff: chrome/common/extensions/api/experimental.downloads.json

Issue 9621007: Add new danger type for uncommon or unknown downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui.cc ('k') | content/browser/download/download_net_log_parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental.downloads.json
diff --git a/chrome/common/extensions/api/experimental.downloads.json b/chrome/common/extensions/api/experimental.downloads.json
index e23f78a2f59339c19d5dc4acb1f0ff2c7fb75af3..3aeecb230745fa4921230a09151ddad9af99ed6d 100644
--- a/chrome/common/extensions/api/experimental.downloads.json
+++ b/chrome/common/extensions/api/experimental.downloads.json
@@ -77,6 +77,11 @@
"value": "content",
"description": "The download's content is malicious."
},
+ "DANGER_UNCOMMON": {
+ "type": "string",
+ "value": "uncommon",
+ "description": "The download is not commonly downloaded and could be dangerous."
+ },
"ERROR_GENERIC": {
"type": "string",
"value": "I'm afraid I can't do that.",
@@ -114,6 +119,12 @@
}
},
{
+ "id": "DownloadDangerType",
+ "description": "String indicating whether a download is known to be safe or is considered dangerous. The values correspond to the <code>DANGER_SAFE</code>, <code>DANGER_FILE</code>, <code>DANGER_URL</code>, <code>DANGER_CONTENT</code>, and <code>DANGER_UNCOMMON</code> properties.",
+ "type": "string",
+ "enum": ["safe", "file", "url", "content", "uncommon"]
+ },
+ {
"id": "DownloadItem",
"type": "object",
"nodoc": "true",
@@ -132,9 +143,8 @@
"description": "absolute local path"
},
"danger": {
- "type": "string",
+ "$ref": "DownloadDangerType",
"description": "Indication of whether this download is thought to be safe or known to be suspicious.",
- "enum": ["safe", "file", "url", "content"],
"optional": true
},
"dangerAccepted": {
@@ -260,9 +270,8 @@
"description": "absolute local path"
},
"danger": {
- "type": "string",
+ "$ref": "DownloadDangerType",
"description": "Indication of whether this download is thought to be safe or known to be suspicious.",
- "enum": ["safe", "file", "url"],
"optional": true
},
"dangerAccepted": {
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui.cc ('k') | content/browser/download/download_net_log_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698