michael@0: /* -*- Mode: c++; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- 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 nsOSHelperAppService_h michael@0: #define nsOSHelperAppService_h michael@0: michael@0: #include "nsCExternalHandlerService.h" michael@0: #include "nsExternalHelperAppService.h" michael@0: michael@0: class nsOSHelperAppService : public nsExternalHelperAppService michael@0: { michael@0: public: michael@0: nsOSHelperAppService(); michael@0: virtual ~nsOSHelperAppService(); michael@0: michael@0: virtual already_AddRefed michael@0: GetMIMEInfoFromOS(const nsACString& aMIMEType, michael@0: const nsACString& aFileExt, michael@0: bool* aFound); michael@0: michael@0: virtual NS_HIDDEN_(nsresult) michael@0: OSProtocolHandlerExists(const char* aScheme, michael@0: bool* aExists); michael@0: michael@0: NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString &aScheme, michael@0: bool *found, michael@0: nsIHandlerInfo **_retval); michael@0: michael@0: static nsIHandlerApp* michael@0: CreateAndroidHandlerApp(const nsAString& aName, michael@0: const nsAString& aDescription, michael@0: const nsAString& aPackageName, michael@0: const nsAString& aClassName, michael@0: const nsACString& aMimeType, michael@0: const nsAString& aAction = EmptyString()); michael@0: }; michael@0: michael@0: #endif /* nsOSHelperAppService_h */