aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-07 21:10:25 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-07 21:10:25 +0800
commit87ef10da74ea294d5d156e901172fe2d90b2544a (patch)
tree757918e5d5fe2aa06504687f076e01313a8c8742 /embed/mozilla/MozDownload.cpp
parente52e0814de88814ee6f2e7a619f3228c973d8f84 (diff)
downloadgsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.tar
gsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.tar.gz
gsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.tar.bz2
gsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.tar.lz
gsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.tar.xz
gsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.tar.zst
gsoc2013-epiphany-87ef10da74ea294d5d156e901172fe2d90b2544a.zip
Fix for mozilla API change.
2005-07-07 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Fix for mozilla API change.
Diffstat (limited to 'embed/mozilla/MozDownload.cpp')
-rw-r--r--embed/mozilla/MozDownload.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index b89707c93..11978a8bb 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -101,12 +101,13 @@ NS_IMPL_ISUPPORTS3(MozDownload, nsIWebProgressListener, nsIDownload, nsITransfer
#ifdef HAVE_GECKO_1_8
nsresult
MozDownload::InitForEmbed (nsIURI *aSource, nsIURI *aTarget, const nsAString &aDisplayName,
- nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsICancelable *aCancelable,
- MozillaEmbedPersist *aEmbedPersist, PRInt64 aMaxSize)
+ nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsILocalFile *aTempFile,
+ nsICancelable *aCancelable, MozillaEmbedPersist *aEmbedPersist,
+ PRInt64 aMaxSize)
{
mEmbedPersist = aEmbedPersist;
mMaxSize = aMaxSize;
- return Init (aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aCancelable);
+ return Init (aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aTempFile, aCancelable);
}
#else
nsresult
@@ -121,13 +122,14 @@ MozDownload::InitForEmbed (nsIURI *aSource, nsIURI *aTarget, const PRUnichar *aD
#endif
#ifdef HAVE_GECKO_1_8
-/* void init (in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime startTime, in nsICancelable aCancelable); */
+/* void init (in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime startTime, in nsILocalFile aTempFile, in nsICancelable aCancelable); */
NS_IMETHODIMP
MozDownload::Init (nsIURI *aSource,
nsIURI *aTarget,
const nsAString &aDisplayName,
nsIMIMEInfo *aMIMEInfo,
PRTime aStartTime,
+ nsILocalFile *aTempFile,
nsICancelable *aCancelable)
#else
/* void init (in nsIURI aSource, in nsIURI aTarget, in wstring aDisplayName, in nsIMIMEInfo aMIMEInfo, in long long startTime, in nsIWebBrowserPersist aPersist); */
@@ -639,7 +641,7 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceURI
/* FIXME is that still true? */
#ifdef HAVE_GECKO_1_8
rv = downloader->InitForEmbed (inOriginalURI, destURI, fileDisplayName,
- nsnull, timeNow, webPersist, embedPersist, aMaxSize);
+ nsnull, timeNow, nsnull, webPersist, embedPersist, aMaxSize);
NS_ENSURE_SUCCESS (rv, rv);
rv = webPersist->SetProgressListener (downloader);