chrome.downloads library

Use the chrome.downloads API to programmatically initiate, monitor, manipulate, and search for downloads.

Classes

BooleanDelta
ChromeDownloads
DangerType
file
The download's filename is suspicious.
url
The download's URL is known to be malicious.
content
The downloaded file is known to be malicious.
uncommon
The download's URL is not commonly downloaded and could be dangerous.
host
The download came from a host known to distribute malicious binaries and is likely dangerous.
unwanted
The download is potentially unwanted or unsafe. E.g. it could make changes to browser or computer settings.
safe
The download presents no known danger to the user's computer.
accepted
The user has accepted the dangerous download.
DoubleDelta
DownloadDelta
Encapsulates a change in a DownloadItem.
DownloadItem
The state of the process of downloading a file.
DownloadOptions
DownloadQuery
FilenameConflictAction
uniquify
To avoid duplication, the `filename` is changed to include a counter before the filename extension.
overwrite
The existing file will be overwritten with the new file.
prompt
The user will be prompted with a file chooser dialog.
FilenameSuggestion
GetFileIconOptions
HeaderNameValuePair
HttpMethod
InterruptReason
OnDeterminingFilenameEvent
State
in_progress
The download is currently receiving data from the server.
interrupted
An error broke the connection with the file host.
complete
The download completed successfully.
StringDelta

Properties

downloads ChromeDownloads
Accessor for the chrome.downloads namespace.
final