Reputation: 33
I need to write a Chrome extension to track file download dates and speeds. Is there any Google Chrome API to detect when a file starts/ends downloading?
Thanks, -J.
Upvotes: 3
Views: 3775
Reputation: 1886
There's something in the pipe right now!
http://developer.chrome.com/extensions/downloads.html
Upvotes: 2
Reputation: 1
Tracking starting and stopping can be done with onCreated/onChanged/search(), which are implemented and will probably be released out of experimental into the dev branch in a couple weeks or so. I'll make an announcement on the Google Chrome Developers G+ stream.
Tracking the speed of the download can be approximated, but the speed that is displayed in the shelf and chrome://downloads is not directly accessible via the extension api as currently spec'd. We'll consider exposing the information if there's a use case that can't be met well enough by approximation.
No firm plans yet on when the api will be released to the stable branch.
Upvotes: 0
Reputation: 17309
No, not at the time of writing.
The Chrome extensions API documentation doesn't currently cover such functionality.
The experimental downloads API doesn't cover the functionality you need but may be worth checking back on as changes are made.
Upvotes: 0