aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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
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')
-rw-r--r--embed/mozilla/MozDownload.cpp12
-rw-r--r--embed/mozilla/MozDownload.h5
2 files changed, 10 insertions, 7 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);
diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h
index c145e0a13..007045564 100644
--- a/embed/mozilla/MozDownload.h
+++ b/embed/mozilla/MozDownload.h
@@ -135,8 +135,9 @@ public:
#ifdef HAVE_GECKO_1_8
nsresult InitForEmbed (nsIURI *aSource, nsIURI *aTarget,
const nsAString &aDisplayName, nsIMIMEInfo *aMIMEInfo,
- PRTime aStartTime, nsICancelable *aCancelable,
- MozillaEmbedPersist *aEmbedPersist, PRInt64 aMaxSize);
+ PRTime aStartTime, nsILocalFile *aTempFile,
+ nsICancelable *aCancelable, MozillaEmbedPersist *aEmbedPersist,
+ PRInt64 aMaxSize);
#else
nsresult InitForEmbed (nsIURI *aSource, nsIURI *aTarget,
const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo,