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 nsGNOMERegistry_h michael@0: #define nsGNOMERegistry_h michael@0: michael@0: #include "nsIURI.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class nsMIMEInfoBase; michael@0: michael@0: class nsGNOMERegistry michael@0: { michael@0: public: michael@0: static bool HandlerExists(const char *aProtocolScheme); michael@0: michael@0: static nsresult LoadURL(nsIURI *aURL); michael@0: michael@0: static void GetAppDescForScheme(const nsACString& aScheme, michael@0: nsAString& aDesc); michael@0: michael@0: static already_AddRefed GetFromExtension(const nsACString& aFileExt); michael@0: michael@0: static already_AddRefed GetFromType(const nsACString& aMIMEType); michael@0: }; michael@0: michael@0: #endif // nsGNOMERegistry_h