Name Description Size
DownloadCore.jsm Main implementation of the Downloads API objects. Consumers should get references to these objects through the "Downloads.jsm" module. 97275
DownloadHistory.jsm Provides access to downloads from previous sessions on platforms that store them in a different location than session downloads. This module works with objects that are compatible with Download, while using the Places interfaces internally. Some of the Places objects may also be exposed to allow the consumers to integrate with history view commands. 27394
DownloadIntegration.jsm Provides functions to integrate with the host application, handling for example the global prompts on shutdown. 44470
DownloadLegacy.jsm This component implements the XPCOM interfaces required for integration with the legacy download components. New code is expected to use the "Downloads.jsm" module directly, without going through the interfaces implemented in this XPCOM component. These interfaces are only maintained for backwards compatibility with components that still work synchronously on the main thread. 15076
DownloadList.jsm Provides collections of Download objects and aggregate views on them. 16173
DownloadPaths.jsm Provides methods for giving names and paths to files being downloaded. 6596
DownloadPlatform.cpp 10862
DownloadPlatform.h 688
DownloadStore.jsm Handles serialization of Download objects and persistence into a file, so that the state of downloads can be restored across sessions. The file is stored in JSON format, without indentation. With indentation applied, the file would look like this: { "list": [ { "source": "http://www.example.com/download.txt", "target": "/home/user/Downloads/download.txt" }, { "source": { "url": "http://www.example.com/download.txt", "referrerInfo": serialized string represents referrerInfo object }, "target": "/home/user/Downloads/download-2.txt" } ] } 5813
DownloadUIHelper.jsm Provides functions to handle status and messages in the user interface. 9783
Downloads.jsm Main entry point to get references to all the back-end objects. 10763
components.conf 535
moz.build 1180
mozIDownloadPlatform.idl Perform platform specific operations when a download is done. Windows: Add the download to the recent documents list Set the file to be indexed for searching Mac: Bounce the downloads dock icon GTK: Add the download to the recent documents list Save the source uri in the downloaded file's metadata Android: Scan media @param aSource Source URI of the download @param aReferrer Referrer URI of the download @param aTarget Downloaded file @param aContentType The source's content type @param aIsPrivate True for private downloads @return Promise that resolves once operations have completed. 1871
test 2