aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-04-27 17:07:36 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-04-27 17:07:36 +0800
commit6fadfbe07379b55695a43687c6b7d935bff80133 (patch)
tree0e9c207847091df0505b4e08caca7e0d899f2a31 /embed/mozilla/MozDownload.h
parente88e7018c298131a4024415d0a2dbff9b7046960 (diff)
downloadgsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.tar
gsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.tar.gz
gsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.tar.bz2
gsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.tar.lz
gsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.tar.xz
gsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.tar.zst
gsoc2013-epiphany-6fadfbe07379b55695a43687c6b7d935bff80133.zip
Nice mess of defines to support 1.8a. Damn.
2004-04-27 Marco Pesenti Gritti <marco@gnome.org> * configure.in: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EventContext.h: * embed/mozilla/FilePicker.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-persist.cpp: Nice mess of defines to support 1.8a. Damn.
Diffstat (limited to 'embed/mozilla/MozDownload.h')
-rw-r--r--embed/mozilla/MozDownload.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h
index 326056059..35a81ad2a 100644
--- a/embed/mozilla/MozDownload.h
+++ b/embed/mozilla/MozDownload.h
@@ -98,6 +98,9 @@ public:
virtual ~MozDownload();
NS_DECL_ISUPPORTS
+#if MOZILLA_SNAPSHOT > 15
+ NS_DECL_NSITRANSFER
+#endif
NS_DECL_NSIDOWNLOAD
NS_DECL_NSIWEBPROGRESSLISTENER
@@ -109,14 +112,25 @@ public:
nsresult GetCurrentProgress (PRInt32 *aCurrentProgress);
nsresult GetTotalProgress (PRInt32 *aTProgress);
nsresult GetElapsedTime (PRInt64 *aTProgress);
+#if MOZILLA_SNAPSHOT < 16
nsresult InitForEmbed (nsIURI *aSource, nsILocalFile *aTarget,
const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo,
PRInt64 startTime, nsIWebBrowserPersist *aPersist,
MozillaEmbedPersist *aEmbedPersist, PRInt32 aMaxSize);
+#else
+ nsresult InitForEmbed (nsIURI *aSource, nsIURI *aTarget,
+ const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo,
+ PRInt64 startTime, nsIWebBrowserPersist *aPersist,
+ MozillaEmbedPersist *aEmbedPersist, PRInt32 aMaxSize);
+#endif
protected:
nsCOMPtr<nsIURI> mSource;
+#if MOZILLA_SNAPSHOT < 16
nsCOMPtr<nsILocalFile> mDestination;
+#else
+ nsCOMPtr<nsIURI> mDestination;
+#endif
nsCOMPtr<nsIMIMEInfo> mMIMEInfo;
PRInt64 mLastUpdate;
PRInt64 mStartTime;