Download Manager improvements in Firefox 3

  • Revision slug: Download_Manager_improvements_in_Firefox_3
  • Revision title: Download Manager improvements in Firefox 3
  • Revision id: 166002
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[ja:Download Manager improvements in Firefox 3]] <<langbot>>

Revision Content

{{template.Fx_minversion_header(3)}} Firefox 3 offers improvements to the Download Manager that allow multiple progress listeners, use of the Storage API for data management, download resuming, and more. In addition, you can augment or replace the Download Manager's user interface by implementing the new {{template.Interface("nsIDownloadManagerUI")}} interface.

{{template.Note("These changes will require some modest revisions to code using the Download Manager; several methods have had minor changes.")}}

Download Manager interfaces

{{template.Interface("nsIDownloadManager")}}
Gives applications and extensions access to the Download Manager, allowing them to add and remove files to the download list, retrieve information about past and present downloads, and request notifications as to the progress of downloads.
{{template.Interface("nsIDownload")}}
Describes a file in the download queue; these files may currently be queued for download, actively being downloaded, or finished being downloaded.
{{template.Interface("nsIDownloadProgressListener")}}
Applications and extensions implement this interface to be made aware of changes in the status of downloads.
{{template.Interface("nsIDownloadManagerUI")}}
Implement this interface to replace or augment the Download Manager user interface.

Examples

Monitoring downloads
An example showing how to use the new Download Manager APIs to create a download log window that shows all past and present downloads and their status, including the start and end times of the downloads, the download speed, and more. Also demonstrates the Storage API.
{{ wiki.languages( { "ja": "ja/Download_Manager_improvements_in_Firefox_3" } ) }}

Revision Source

<p>{{template.Fx_minversion_header(3)}}
Firefox 3 offers improvements to the Download Manager that allow multiple progress listeners, use of the <a href="en/Storage">Storage</a> API for data management, download resuming, and more.  In addition, you can augment or replace the Download Manager's user interface by implementing the new {{template.Interface("nsIDownloadManagerUI")}} interface.
</p><p>{{template.Note("These changes will require some modest revisions to code using the Download Manager; several methods have had minor changes.")}}
</p>
<h3 name="Download_Manager_interfaces">Download Manager interfaces</h3>
<dl><dt>{{template.Interface("nsIDownloadManager")}}
</dt><dd>Gives applications and extensions access to the Download Manager, allowing them to add and remove files to the download list, retrieve information about past and present downloads, and request notifications as to the progress of downloads.
</dd><dt>{{template.Interface("nsIDownload")}}
</dt><dd>Describes a file in the download queue; these files may currently be queued for download, actively being downloaded, or finished being downloaded.
</dd><dt>{{template.Interface("nsIDownloadProgressListener")}}
</dt><dd>Applications and extensions implement this interface to be made aware of changes in the status of downloads.
</dd><dt>{{template.Interface("nsIDownloadManagerUI")}}
</dt><dd>Implement this interface to replace or augment the Download Manager user interface.
</dd></dl>
<h3 name="Examples">Examples</h3>
<dl><dt><a href="en/Monitoring_downloads">Monitoring downloads</a>
</dt><dd>An example showing how to use the new Download Manager APIs to create a download log window that shows all past and present downloads and their status, including the start and end times of the downloads, the download speed, and more.  Also demonstrates the <a href="en/Storage">Storage</a> API.
</dd></dl>
<div class="noinclude">
</div>
{{ wiki.languages( { "ja": "ja/Download_Manager_improvements_in_Firefox_3" } ) }}
Revert to this revision