nsExternalAppHandler needs no virtual functions
also, w/o bug: nsExternalHelperAppService doesn't require threadsafe addref/release
r=bzbarsky sr=darin
This commit is contained in:
cbiesinger%web.de 2004-01-16 18:22:55 +00:00
Родитель 3077885e6a
Коммит f4f01b8b90
3 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -386,7 +386,7 @@ static nsDefaultMimeTypeEntry nonDecodableExtensions [] = {
{ APPLICATION_COMPRESS, "Z" } { APPLICATION_COMPRESS, "Z" }
}; };
NS_IMPL_THREADSAFE_ISUPPORTS6( NS_IMPL_ISUPPORTS6(
nsExternalHelperAppService, nsExternalHelperAppService,
nsIExternalHelperAppService, nsIExternalHelperAppService,
nsPIExternalAppLauncher, nsPIExternalAppLauncher,

Просмотреть файл

@ -288,9 +288,9 @@ public:
NS_DECL_NSIOBSERVER NS_DECL_NSIOBSERVER
nsExternalAppHandler(); nsExternalAppHandler();
virtual ~nsExternalAppHandler(); ~nsExternalAppHandler();
virtual nsresult Init(nsIMIMEInfo * aMIMEInfo, const char * aFileExtension, nsresult Init(nsIMIMEInfo * aMIMEInfo, const char * aFileExtension,
nsISupports * aWindowContext, nsISupports * aWindowContext,
const nsAString& aFilename, const nsAString& aFilename,
PRBool aIsAttachment, PRBool aIsAttachment,
@ -394,10 +394,10 @@ protected:
/** /**
* Helper routine to ensure mSuggestedFileName is "correct"; * Helper routine to ensure mSuggestedFileName is "correct";
* the base class implementation ensures that mSuggestedFileName has * this ensures that mTempFileExtension only contains an extension when it
* mTempFileExtension as extension; * is different from mSuggestedFileName's extension.
*/ */
virtual void EnsureSuggestedFileName(); void EnsureSuggestedFileName();
typedef enum { kReadError, kWriteError, kLaunchError } ErrorType; typedef enum { kReadError, kWriteError, kLaunchError } ErrorType;
/** /**

Просмотреть файл

@ -39,7 +39,7 @@ public:
NS_DECL_NSIEXTERNALPROTOCOLHANDLER NS_DECL_NSIEXTERNALPROTOCOLHANDLER
nsExternalProtocolHandler(); nsExternalProtocolHandler();
virtual ~nsExternalProtocolHandler(); ~nsExternalProtocolHandler();
protected: protected:
// helper function // helper function