michael@0: /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsMIMEInfoUnix_h_ michael@0: #define nsMIMEInfoUnix_h_ michael@0: michael@0: #include "nsMIMEInfoImpl.h" michael@0: michael@0: class nsMIMEInfoUnix : public nsMIMEInfoImpl michael@0: { michael@0: public: michael@0: nsMIMEInfoUnix(const char *aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {} michael@0: nsMIMEInfoUnix(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {} michael@0: nsMIMEInfoUnix(const nsACString& aType, HandlerClass aClass) : michael@0: nsMIMEInfoImpl(aType, aClass) {} michael@0: static bool HandlerExists(const char *aProtocolScheme); michael@0: michael@0: protected: michael@0: NS_IMETHOD GetHasDefaultHandler(bool *_retval); michael@0: michael@0: virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI); michael@0: michael@0: virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile); michael@0: #if defined(MOZ_ENABLE_CONTENTACTION) michael@0: NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers); michael@0: #endif michael@0: }; michael@0: michael@0: #endif // nsMIMEInfoUnix_h_