nsLoadFlags loadAttributes = nsIChannel::LOAD_NORMAL,
nsLoadFlags loadAttributes = nsLoadFlags(nsIChannel::LOAD_NORMAL),
NS_NewDownloader(nsIDownloader* *result,                   nsIURI* uri,                   nsIDownloadObserver* observer,                   nsISupports* context = nsnull,                   PRBool synchronous = PR_FALSE,                   nsILoadGroup* loadGroup = nsnull,                   nsIInterfaceRequestor* notificationCallbacks = nsnull,                   nsLoadFlags loadAttributes = nsIChannel::LOAD_NORMAL,                   PRUint32 bufferSegmentSize = 0,                    PRUint32 bufferMaxSize = 0){    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,                          loadAttributes, bufferSegmentSize, bufferMaxSize);    if (NS_FAILED(rv)) return rv;    *result = downloader;    NS_ADDREF(*result);    return rv;}