2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2004-02-24 01:49:28 +03:00
|
|
|
|
|
|
|
#ifndef nsMIMEInfoMac_h_
|
|
|
|
#define nsMIMEInfoMac_h_
|
|
|
|
|
|
|
|
#include "nsMIMEInfoImpl.h"
|
|
|
|
|
|
|
|
class nsMIMEInfoMac : public nsMIMEInfoImpl {
|
|
|
|
public:
|
2014-09-02 02:01:37 +04:00
|
|
|
explicit nsMIMEInfoMac(const char* aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {}
|
|
|
|
explicit nsMIMEInfoMac(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {}
|
2007-07-26 00:40:41 +04:00
|
|
|
nsMIMEInfoMac(const nsACString& aType, HandlerClass aClass) :
|
|
|
|
nsMIMEInfoImpl(aType, aClass) {}
|
2004-02-24 01:49:28 +03:00
|
|
|
|
2017-11-06 06:37:28 +03:00
|
|
|
NS_IMETHOD LaunchWithFile(nsIFile* aFile) override;
|
2004-02-24 01:49:28 +03:00
|
|
|
protected:
|
2017-11-06 06:37:28 +03:00
|
|
|
virtual MOZ_MUST_USE nsresult LoadUriInternal(nsIURI *aURI) override;
|
2007-07-26 08:24:25 +04:00
|
|
|
#ifdef DEBUG
|
2017-11-06 06:37:28 +03:00
|
|
|
virtual MOZ_MUST_USE nsresult LaunchDefaultWithFile(nsIFile* aFile) override {
|
2018-06-18 08:43:11 +03:00
|
|
|
MOZ_ASSERT_UNREACHABLE("do not call this method, use LaunchWithFile");
|
2004-02-24 01:49:28 +03:00
|
|
|
return NS_ERROR_UNEXPECTED;
|
|
|
|
}
|
|
|
|
#endif
|
2016-08-08 13:16:15 +03:00
|
|
|
static MOZ_MUST_USE nsresult OpenApplicationWithURI(nsIFile *aApplication,
|
|
|
|
const nsCString& aURI);
|
2004-02-24 01:49:28 +03:00
|
|
|
|
2017-11-06 06:37:28 +03:00
|
|
|
NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription) override;
|
|
|
|
};
|
2004-02-24 01:49:28 +03:00
|
|
|
|
|
|
|
#endif
|