2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-11-18 23:50:59 -08:00
|
|
|
#ifndef nsGNOMERegistry_h
|
|
|
|
#define nsGNOMERegistry_h
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsIURI.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
|
|
|
class nsMIMEInfoBase;
|
|
|
|
|
|
|
|
class nsGNOMERegistry
|
|
|
|
{
|
|
|
|
public:
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool HandlerExists(const char *aProtocolScheme);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
static nsresult LoadURL(nsIURI *aURL);
|
|
|
|
|
|
|
|
static void GetAppDescForScheme(const nsACString& aScheme,
|
|
|
|
nsAString& aDesc);
|
|
|
|
|
2008-01-29 20:36:11 -08:00
|
|
|
static already_AddRefed<nsMIMEInfoBase> GetFromExtension(const nsACString& aFileExt);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-01-29 20:36:11 -08:00
|
|
|
static already_AddRefed<nsMIMEInfoBase> GetFromType(const nsACString& aMIMEType);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
2013-11-18 23:50:59 -08:00
|
|
|
|
|
|
|
#endif // nsGNOMERegistry_h
|