diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-04-30 06:42:52 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-04-30 06:42:52 +0800 |
commit | 37b6cdee54a229d78f9c955ddd8e5c395ef32155 (patch) | |
tree | b4bc6702f66012bef698552070c6a3569879ff95 /embed/mozilla/MozDownload.cpp | |
parent | 43dbdc1eb7b96e4672d0d3bd68f01fd65f1690b7 (diff) | |
download | gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.tar gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.tar.gz gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.tar.bz2 gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.tar.lz gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.tar.xz gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.tar.zst gsoc2013-epiphany-37b6cdee54a229d78f9c955ddd8e5c395ef32155.zip |
fix build bustage
Diffstat (limited to 'embed/mozilla/MozDownload.cpp')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 4c60d424d..79e25c8c0 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -86,7 +86,11 @@ NS_IMPL_ISUPPORTS3(MozDownload, nsIDownload, nsITransfer, nsIWebProgressListener #endif NS_IMETHODIMP +#if MOZILLA_SNAPSHOT < 16 +MozDownload::InitForEmbed (nsIURI *aSource, nsILocalFile *aTarget, const PRUnichar *aDisplayName, +#else MozDownload::InitForEmbed (nsIURI *aSource, nsIURI *aTarget, const PRUnichar *aDisplayName, +#endif nsIMIMEInfo *aMIMEInfo, PRInt64 startTime, nsIWebBrowserPersist *aPersist, MozillaEmbedPersist *aEmbedPersist, PRInt32 aMaxSize) { @@ -527,12 +531,18 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceURI nsAutoString fileDisplayName; inDestFile->GetLeafName(fileDisplayName); + #if MOZILLA_SNAPSHOT >= 16 nsCOMPtr<nsIURI> destURI; NS_NewFileURI (getter_AddRefs(destURI), inDestFile); + #endif MozDownload *downloader = new MozDownload (); /* dlListener attaches to its progress dialog here, which gains ownership */ + #if MOZILLA_SNAPSHOT < 16 + rv = downloader->InitForEmbed (inOriginalURI, inDestFile, fileDisplayName.get(), + #else rv = downloader->InitForEmbed (inOriginalURI, destURI, fileDisplayName.get(), + #endif nsnull, timeNow, webPersist, embedPersist, aMaxSize); NS_ENSURE_SUCCESS (rv, rv); |