notificationCallbacks, loadAttributes);
notificationCallbacks, loadAttributes, referrer, referrerFlags);
NS_NewStreamLoader(nsIStreamLoader* *result,                   nsIURI* uri,                   nsIStreamLoaderObserver* observer,                   nsISupports* context = nsnull,                   nsILoadGroup* loadGroup = nsnull,                   nsIInterfaceRequestor* notificationCallbacks = nsnull,                   nsLoadFlags loadAttributes = NS_STATIC_CAST(nsLoadFlags, nsIRequest::LOAD_NORMAL)){    nsresult rv;    nsCOMPtr<nsIStreamLoader> loader;    static NS_DEFINE_CID(kStreamLoaderCID, NS_STREAMLOADER_CID);    rv = nsComponentManager::CreateInstance(kStreamLoaderCID,                                            nsnull,                                            NS_GET_IID(nsIStreamLoader),                                            getter_AddRefs(loader));    if (NS_FAILED(rv)) return rv;    rv = loader->Init(uri, observer, context, loadGroup,                      notificationCallbacks, loadAttributes);                          if (NS_FAILED(rv)) return rv;    *result = loader;    NS_ADDREF(*result);    return rv;}