From 4a10053f4fa6380a4400b2c28ccf31c76a86497a Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 18 Oct 2003 14:16:24 +0000 Subject: fixup style 2003-10-18 Marco Pesenti Gritti * TODO: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: fixup style --- embed/mozilla/MozDownload.h | 103 +++++++++++++++++++++----------------------- 1 file changed, 49 insertions(+), 54 deletions(-) (limited to 'embed/mozilla/MozDownload.h') 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 mSource; - nsCOMPtr mDestination; - PRInt64 mLastUpdate; - PRInt64 mStartTime; - PRInt64 mElapsed; - PRInt32 mInterval; - PRInt32 mPercentComplete; - PRInt32 mTotalProgress; - PRInt32 mCurrentProgress; + nsCOMPtr mSource; + nsCOMPtr 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 mWebPersist; - nsCOMPtr mHelperAppLauncher; - - EphyDownload *mEphyDownload; - DownloaderView *mDownloaderView; - MozillaEmbedPersist *mEmbedPersist; - EphyDownloadState mDownloadState; + bool mGotFirstStateChange, mIsNetworkTransfer; + bool mUserCanceled; + nsresult mStatus; + + nsCOMPtr mWebPersist; + EphyDownload *mEphyDownload; + DownloaderView *mDownloaderView; + MozillaEmbedPersist *mEmbedPersist; + EphyDownloadState mDownloadState; }; #endif // MozDownload_h__ -- cgit v1.2.3