зеркало из https://github.com/mozilla/pjs.git
230970
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:
Родитель
3077885e6a
Коммит
f4f01b8b90
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче