OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "experimental.downloads", | 7 "namespace": "experimental.downloads", |
8 "events": [ | 8 "events": [ |
9 { | 9 { |
10 "name": "onCreated", | 10 "name": "onCreated", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 "description": "An identifier that is persistent across browser sess
ions." | 135 "description": "An identifier that is persistent across browser sess
ions." |
136 }, | 136 }, |
137 "url": { | 137 "url": { |
138 "type": "string", | 138 "type": "string", |
139 "description": "absolute URL" | 139 "description": "absolute URL" |
140 }, | 140 }, |
141 "filename": { | 141 "filename": { |
142 "type": "string", | 142 "type": "string", |
143 "description": "absolute local path" | 143 "description": "absolute local path" |
144 }, | 144 }, |
| 145 "incognito": { |
| 146 "type": "boolean", |
| 147 "description": "True if this download is off-the-record, false other
wise.", |
| 148 "optional": true |
| 149 }, |
145 "danger": { | 150 "danger": { |
146 "$ref": "DownloadDangerType", | 151 "$ref": "DownloadDangerType", |
147 "description": "Indication of whether this download is thought to be
safe or known to be suspicious.", | 152 "description": "Indication of whether this download is thought to be
safe or known to be suspicious.", |
148 "optional": true | 153 "optional": true |
149 }, | 154 }, |
150 "dangerAccepted": { | 155 "dangerAccepted": { |
151 "type": "boolean", | 156 "type": "boolean", |
152 "description": "true if the user has accepted the download's danger.
", | 157 "description": "true if the user has accepted the download's danger.
", |
153 "optional": true | 158 "optional": true |
154 }, | 159 }, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 "url": { | 267 "url": { |
263 "type": "string", | 268 "type": "string", |
264 "optional": true, | 269 "optional": true, |
265 "description": "absolute URL" | 270 "description": "absolute URL" |
266 }, | 271 }, |
267 "filename": { | 272 "filename": { |
268 "type": "string", | 273 "type": "string", |
269 "optional": true, | 274 "optional": true, |
270 "description": "absolute local path" | 275 "description": "absolute local path" |
271 }, | 276 }, |
| 277 "incognito": { |
| 278 "type": "string", |
| 279 "optional": true, |
| 280 "enum": ["none", "only"], |
| 281 "description": "Whether to include only off-the-record downloads in
the results, or no off-the-record downloads. The default (undefined) is to inclu
de both." |
| 282 }, |
272 "danger": { | 283 "danger": { |
273 "$ref": "DownloadDangerType", | 284 "$ref": "DownloadDangerType", |
274 "description": "Indication of whether this download is thought to be
safe or known to be suspicious.", | 285 "description": "Indication of whether this download is thought to be
safe or known to be suspicious.", |
275 "optional": true | 286 "optional": true |
276 }, | 287 }, |
277 "dangerAccepted": { | 288 "dangerAccepted": { |
278 "type": "boolean", | 289 "type": "boolean", |
279 "optional": true, | 290 "optional": true, |
280 "description": "true if the user has accepted the download's danger.
" | 291 "description": "true if the user has accepted the download's danger.
" |
281 }, | 292 }, |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 "type": "string", | 663 "type": "string", |
653 "description": "A URL to an image that represents the download.
If a file icon cannot be determined, chrome.extension.lastError will contain an
error message." | 664 "description": "A URL to an image that represents the download.
If a file icon cannot be determined, chrome.extension.lastError will contain an
error message." |
654 } | 665 } |
655 ] | 666 ] |
656 } | 667 } |
657 ] | 668 ] |
658 } | 669 } |
659 ] | 670 ] |
660 } | 671 } |
661 ] | 672 ] |
OLD | NEW |