From d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 6 Apr 2005 14:29:55 +0000 Subject: Fix for MOZILLA_INTERNAL_API change, and for 64bit downloader change. 2005-04-06 Christian Persch * configure.ac: * embed/downloader-view.c: (update_download_row): * embed/ephy-download.c: * embed/ephy-download.h: * embed/ephy-embed-persist.c: (ephy_embed_persist_set_max_size), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_class_init): * embed/ephy-embed-persist.h: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/EphyHistoryListener.cpp: * embed/mozilla/EphySidebar.cpp: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/FilePicker.h: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: Fix for MOZILLA_INTERNAL_API change, and for 64bit downloader change. --- embed/mozilla/MozDownload.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'embed/mozilla/MozDownload.h') diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h index c4592ec5d..52c06c94f 100644 --- a/embed/mozilla/MozDownload.h +++ b/embed/mozilla/MozDownload.h @@ -108,6 +108,9 @@ public: NS_DECL_ISUPPORTS NS_DECL_NSIWEBPROGRESSLISTENER +#ifdef HAVE_NSITRANSFER_H + NS_DECL_NSIWEBPROGRESSLISTENER2 +#endif NS_DECL_NSITRANSFER #ifndef HAVE_NSITRANSFER_H NS_DECL_NSIDOWNLOAD @@ -125,8 +128,8 @@ public: virtual void Resume(); nsresult GetState (EphyDownloadState *aDownloadState); - nsresult GetCurrentProgress (PRInt32 *aCurrentProgress); - nsresult GetTotalProgress (PRInt32 *aTProgress); + nsresult GetCurrentProgress (PRInt64 *aCurrentProgress); + nsresult GetTotalProgress (PRInt64 *aTProgress); nsresult GetElapsedTime (PRInt64 *aTProgress); nsresult InitForEmbed (nsIURI *aSource, nsIURI *aTarget, const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo, @@ -143,9 +146,9 @@ protected: PRInt64 mElapsed; PRInt32 mInterval; PRInt32 mPercentComplete; - PRInt32 mTotalProgress; - PRInt32 mCurrentProgress; - PRInt32 mMaxSize; + PRInt64 mTotalProgress; + PRInt64 mCurrentProgress; + PRInt64 mMaxSize; nsresult mStatus; -- cgit v1.2.3