WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDownloadHistory

IID:202533cd-a8f1-4ee4-8d20-3a6a0d2c6c51
Inherits From:nsISupports

This interface can be used to add a download to history. There is a separate interface specifically for downloads in case embedders choose to track downloads differently from other types of history.

This interface is implemented by the following components:


Methods

void addDownload ( nsIURI source , nsIURI referrer , PRTime startTime )

void addDownload ( nsIURI source , nsIURI referrer , PRTime startTime )

Adds a download to history. This will also notify observers that the URI source is visited with the topic NS_LINK_VISITED_EVENT_TOPIC if source has not yet been visited.

Arguments:
source: The source of the download we are adding to history. This cannot be null.
referrer: [optional] The referrer of source URI.
startTime: [optional] The time the download was started. If the start time is not given, the current time is used.

Reference documentation is generated from Mozilla's source.