Source code

Copy as Markdown

Other Tools

/* THIS FILE IS GENERATED BY Services.py - DO NOT EDIT */
#ifndef mozilla_Services_h
#define mozilla_Services_h
#include "nscore.h"
#include "nsCOMPtr.h"
class nsIChromeRegistry;
#ifdef MOZILLA_INTERNAL_API
namespace mozilla {
namespace services {
/**
* Fetch a cached instance of the ChromeRegistry.
* This function will return nullptr during XPCOM shutdown.
* Prefer using static components to this method.
* WARNING: This method is _not_ threadsafe!
*/
already_AddRefed<nsIChromeRegistry> GetChromeRegistry();
} // namespace services
} // namespace mozilla
#endif // defined(MOZILLA_INTERNAL_API)
class nsIIOService;
#ifdef MOZILLA_INTERNAL_API
namespace mozilla {
namespace services {
/**
* Fetch a cached instance of the IOService.
* This function will return nullptr during XPCOM shutdown.
* Prefer using static components to this method.
* WARNING: This method is _not_ threadsafe!
*/
already_AddRefed<nsIIOService> GetIOService();
} // namespace services
} // namespace mozilla
#endif // defined(MOZILLA_INTERNAL_API)
class nsIObserverService;
#ifdef MOZILLA_INTERNAL_API
namespace mozilla {
namespace services {
/**
* Fetch a cached instance of the ObserverService.
* This function will return nullptr during XPCOM shutdown.
* Prefer using static components to this method.
* WARNING: This method is _not_ threadsafe!
*/
already_AddRefed<nsIObserverService> GetObserverService();
} // namespace services
} // namespace mozilla
#endif // defined(MOZILLA_INTERNAL_API)
class nsIPermissionManager;
#ifdef MOZILLA_INTERNAL_API
namespace mozilla {
namespace services {
/**
* Fetch a cached instance of the PermissionManager.
* This function will return nullptr during XPCOM shutdown.
* Prefer using static components to this method.
* WARNING: This method is _not_ threadsafe!
*/
already_AddRefed<nsIPermissionManager> GetPermissionManager();
} // namespace services
} // namespace mozilla
#endif // defined(MOZILLA_INTERNAL_API)
class nsIAsyncShutdownService;
#ifdef MOZILLA_INTERNAL_API
namespace mozilla {
namespace services {
/**
* Fetch a cached instance of the AsyncShutdownService.
* This function will return nullptr during XPCOM shutdown.
* Prefer using static components to this method.
* WARNING: This method is _not_ threadsafe!
*/
already_AddRefed<nsIAsyncShutdownService> GetAsyncShutdownService();
} // namespace services
} // namespace mozilla
#endif // defined(MOZILLA_INTERNAL_API)
#endif // !defined(mozilla_Services_h)