notificationCallbacks, loadFlags);
notificationCallbacks, loadAttributes);
NS_NewDownloader(nsIDownloader **result,                 nsIURI *uri,                 nsIDownloadObserver *observer,                 nsISupports *context,                 PRBool synchronous,                 nsILoadGroup *loadGroup,                 nsIInterfaceRequestor *notificationCallbacks,                 PRUint32 loadFlags){    nsresult rv;    nsCOMPtr<nsIDownloader> downloader;    static NS_DEFINE_CID(kDownloaderCID, NS_DOWNLOADER_CID);    rv = nsComponentManager::CreateInstance(kDownloaderCID,                                            nsnull,                                            NS_GET_IID(nsIDownloader),                                            getter_AddRefs(downloader));    if (NS_FAILED(rv)) return rv;    rv = downloader->Init(uri, observer, context, synchronous, loadGroup,                          notificationCallbacks, loadFlags);    if (NS_FAILED(rv)) return rv;    *result = downloader;    NS_ADDREF(*result);    return rv;}