DescriptionA few minor changes to the chrome.downloads extension API
Reviewers:
jhawkins: webui
Done:
asanka: */download/*
jam: content/public/*
asargent: */extensions/*
Replaced the "Invalid operation" error message with more specific and helpful messages
Add DownloadItem.referrer
Add DownloadItem.estimatedEndTime
Add DownloadItem.canResume
Change DownloadQuery.limit to default to 1000
Change 'conflict_action' to 'conflictAction'.
Change DownloadQuery.orderBy and DownloadQuery.query to arrays of strings
Remove DownloadItem.dangerAccepted in favor of DownloadItem.danger == 'accepted'
Add showDefaultFolder().
Disallow access to packaged_apps.
download() now updates the Download.Sources histogram. http://crbug.com/240322
Document using startedAfter and limit to page through search() results.
DownloadItem.error is now a string enum instead of mysterious numbers.
Add downloads.removeFile(id) and DownloadItem::DeleteFile() so that the file may be deleted separately from the history entry.
Calling open() for dangerous downloads has always been guaranteed to return kInvalidOperation because unaccepted dangerous downloads cannot transition to state='complete', and open() returns kInvalidOperation for incomplete items.
We can wait until after launch to figure out whether there needs to be some mechanism to allow extensions to override the request header blacklist. This seems like an edge case for which we may never receive feature requests.
Staged docs preview: http://basho.cam.corp.google.com:8000/extensions/downloads.html#type-DownloadItem
BUG=240322
R=asanka@chromium.org, asargent@chromium.org, jam@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214133
Patch Set 1 : @r208716 #
Total comments: 2
Patch Set 2 : @r211135 #
Total comments: 12
Patch Set 3 : @r212092 #
Total comments: 16
Patch Set 4 : @r213855 #
Total comments: 6
Patch Set 5 : @r213855 #
Total comments: 2
Patch Set 6 : @r214130 #Messages
Total messages: 21 (0 generated)
|