aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-18 22:16:24 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-18 22:16:24 +0800
commit4a10053f4fa6380a4400b2c28ccf31c76a86497a (patch)
tree3a6ca3df7892ada56a34544a3a8b66e5f6793a10 /embed/mozilla/MozDownload.h
parent850649e3b65a15efa73d5c34b5c14d9b9cf5ef09 (diff)
downloadgsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.tar
gsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.tar.gz
gsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.tar.bz2
gsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.tar.lz
gsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.tar.xz
gsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.tar.zst
gsoc2013-epiphany-4a10053f4fa6380a4400b2c28ccf31c76a86497a.zip
fixup style
2003-10-18 Marco Pesenti Gritti <marco@gnome.org> * TODO: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: fixup style
Diffstat (limited to 'embed/mozilla/MozDownload.h')
-rw-r--r--embed/mozilla/MozDownload.h103
1 files changed, 49 insertions, 54 deletions
diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h
index f2fc8fe4b..56b8e16e1 100644
--- a/embed/mozilla/MozDownload.h
+++ b/embed/mozilla/MozDownload.h
@@ -53,76 +53,71 @@
#include "ephy-download.h"
#include "ephy-embed-shell.h"
-//*****************************************************************************
-// MozDownload
-//
-// Holds information used to display a single download in the UI. This object is
-// created in one of two ways:
-// (1) By nsExternalHelperAppHandler when Gecko encounters a MIME type which
-// it doesn't itself handle. In this case, the notifications sent to
-// nsIDownload are controlled by nsExternalHelperAppHandler.
-// (2) By the embedding app's file saving code when saving a web page or a link
-// target. See CHeaderSniffer.cpp. In this case, the notifications sent to
-// nsIDownload are controlled by the implementation of nsIWebBrowserPersist.
-//*****************************************************************************
+/* MozDownload
+ Holds information used to display a single download in the UI. This object is
+ created in one of two ways:
+ (1) By nsExternalHelperAppHandler when Gecko encounters a MIME type which
+ it doesn't itself handle. In this case, the notifications sent to
+ nsIDownload are controlled by nsExternalHelperAppHandler.
+ (2) By the embedding app's file saving code when saving a web page or a link
+ target. See CHeaderSniffer.cpp. In this case, the notifications sent to
+ nsIDownload are controlled by the implementation of nsIWebBrowserPersist.
+*/
#define MOZ_DOWNLOAD_CID \
{ /* d2a2f743-f126-4f1f-1234-d4e50490f112 */ \
- 0xd2a2f743, \
- 0xf126, \
- 0x4f1f, \
- {0x12, 0x34, 0xd4, 0xe5, 0x04, 0x90, 0xf1, 0x12} \
+ 0xd2a2f743, \
+ 0xf126, \
+ 0x4f1f, \
+ {0x12, 0x34, 0xd4, 0xe5, 0x04, 0x90, 0xf1, 0x12} \
}
#define MOZ_DOWNLOAD_CLASSNAME "Ephy's Download Progress Dialog"
class MozDownload : public nsIDownload,
- public nsIWebProgressListener
+ public nsIWebProgressListener
{
public:
- MozDownload();
- virtual ~MozDownload();
+ MozDownload();
+ virtual ~MozDownload();
- NS_DECL_ISUPPORTS
- NS_DECL_NSIDOWNLOAD
- NS_DECL_NSIWEBPROGRESSLISTENER
+ NS_DECL_ISUPPORTS
+ NS_DECL_NSIDOWNLOAD
+ NS_DECL_NSIWEBPROGRESSLISTENER
- virtual void Cancel();
- virtual void Pause();
- virtual void Resume();
+ virtual void Cancel();
+ virtual void Pause();
+ virtual void Resume();
- nsresult GetState (EphyDownloadState *aDownloadState);
- nsresult GetCurrentProgress (PRInt32 *aCurrentProgress);
- nsresult GetTotalProgress (PRInt32 *aTProgress);
- nsresult GetElapsedTime (PRInt64 *aTProgress);
- nsresult InitForEmbed (nsIURI *aSource, nsILocalFile *aTarget,
- const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo,
- PRInt64 startTime, nsIWebBrowserPersist *aPersist,
- MozillaEmbedPersist *aEmbedPersist);
+ nsresult GetState (EphyDownloadState *aDownloadState);
+ nsresult GetCurrentProgress (PRInt32 *aCurrentProgress);
+ nsresult GetTotalProgress (PRInt32 *aTProgress);
+ nsresult GetElapsedTime (PRInt64 *aTProgress);
+ nsresult InitForEmbed (nsIURI *aSource, nsILocalFile *aTarget,
+ const PRUnichar *aDisplayName, nsIMIMEInfo *aMIMEInfo,
+ PRInt64 startTime, nsIWebBrowserPersist *aPersist,
+ MozillaEmbedPersist *aEmbedPersist);
protected:
- nsCOMPtr<nsIURI> mSource;
- nsCOMPtr<nsILocalFile> mDestination;
- PRInt64 mLastUpdate;
- PRInt64 mStartTime;
- PRInt64 mElapsed;
- PRInt32 mInterval;
- PRInt32 mPercentComplete;
- PRInt32 mTotalProgress;
- PRInt32 mCurrentProgress;
+ nsCOMPtr<nsIURI> mSource;
+ nsCOMPtr<nsILocalFile> mDestination;
+ PRInt64 mLastUpdate;
+ PRInt64 mStartTime;
+ PRInt64 mElapsed;
+ PRInt32 mInterval;
+ PRInt32 mPercentComplete;
+ PRInt32 mTotalProgress;
+ PRInt32 mCurrentProgress;
- bool mGotFirstStateChange, mIsNetworkTransfer;
- bool mUserCanceled;
- nsresult mStatus;
-
- // These two are mutually exclusive.
- nsCOMPtr<nsIWebBrowserPersist> mWebPersist;
- nsCOMPtr<nsIHelperAppLauncher> mHelperAppLauncher;
-
- EphyDownload *mEphyDownload;
- DownloaderView *mDownloaderView;
- MozillaEmbedPersist *mEmbedPersist;
- EphyDownloadState mDownloadState;
+ bool mGotFirstStateChange, mIsNetworkTransfer;
+ bool mUserCanceled;
+ nsresult mStatus;
+
+ nsCOMPtr<nsIWebBrowserPersist> mWebPersist;
+ EphyDownload *mEphyDownload;
+ DownloaderView *mDownloaderView;
+ MozillaEmbedPersist *mEmbedPersist;
+ EphyDownloadState mDownloadState;
};
#endif // MozDownload_h__