Copy as Markdown

Other Tools

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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/. */
#ifndef mozilla_Components_h
#define mozilla_Components_h
#include "nsCOMPtr.h"
struct nsID;
#define NS_IMPL_COMPONENT_FACTORY(iface) \
template <> \
already_AddRefed<nsISupports> mozCreateComponent<iface>()
template <typename T>
already_AddRefed<nsISupports> mozCreateComponent();
namespace mozilla {
namespace xpcom {
enum class ModuleID : uint16_t {
Anonymous229,
Anonymous369,
Anonymous236,
Anonymous053,
Anonymous192,
Anonymous170,
Anonymous140,
Anonymous344,
Anonymous269,
Anonymous066,
Anonymous324,
Anonymous379,
Anonymous357,
Anonymous232,
Anonymous039,
Anonymous036,
Anonymous288,
Anonymous007,
BounceTrackingProtection,
Anonymous095,
Anonymous370,
Anonymous300,
Anonymous270,
Anonymous130,
ExtensionPolicy,
Anonymous034,
UrlClassifierUtils,
Anonymous380,
UrlClassifierDB,
Anonymous274,
Anonymous196,
Anonymous000,
AddonContentPolicy,
Anonymous043,
Anonymous158,
Anonymous320,
Anonymous287,
Anonymous350,
Anonymous005,
Anonymous014,
Anonymous106,
Anonymous265,
Anonymous353,
NSSCertificateDB,
Anonymous182,
SystemInfo,
Anonymous024,
Anonymous372,
Anonymous363,
Anonymous100,
Anonymous209,
Anonymous258,
Anonymous323,
Anonymous167,
IdentityCredentialPromptService,
Anonymous264,
HttpHandler,
Locale,
Anonymous259,
Anonymous319,
Anonymous374,
Anonymous268,
CategoryManager,
Anonymous364,
Anonymous235,
Anonymous067,
Anonymous286,
nsIContentAnalysis,
Anonymous011,
Anonymous068,
Anonymous153,
Anonymous336,
Anonymous291,
Anonymous200,
Anonymous134,
Anonymous173,
Anonymous035,
Anonymous169,
Anonymous133,
Anonymous358,
Anonymous190,
Anonymous285,
Anonymous219,
Anonymous337,
Anonymous275,
Anonymous240,
Anonymous218,
Anonymous008,
Anonymous302,
Anonymous245,
Anonymous303,
Anonymous119,
RandomGenerator,
Anonymous193,
Anonymous044,
Anonymous026,
Anonymous223,
Anonymous058,
Anonymous081,
Anonymous241,
Anonymous310,
Anonymous242,
Anonymous283,
Anonymous273,
Anonymous230,
Anonymous078,
Anonymous365,
Anonymous339,
Anonymous328,
StreamConverter,
Anonymous124,
Anonymous126,
Anonymous146,
Anonymous148,
Anonymous109,
Anonymous136,
Anonymous113,
URLQueryStringStripper,
Anonymous010,
Anonymous137,
Anonymous040,
Console,
Anonymous103,
Anonymous331,
Anonymous063,
Anonymous186,
ExternalProtocolHandler,
Anonymous114,
URILoader,
Anonymous254,
Anonymous162,
Anonymous122,
Anonymous045,
Anonymous233,
Anonymous077,
StringBundle,
Anonymous304,
Anonymous076,
ProtocolProxy,
Anonymous129,
Anonymous143,
Anonymous108,
ThirdPartyUtil,
Anonymous178,
Anonymous360,
Anonymous354,
Anonymous217,
Anonymous032,
Anonymous334,
Anonymous082,
Anonymous070,
Anonymous251,
Anonymous051,
Anonymous111,
Anonymous377,
Anonymous160,
Anonymous306,
Anonymous267,
Anonymous355,
UUIDGenerator,
Anonymous234,
Anonymous226,
Anonymous062,
Anonymous222,
Anonymous098,
ContentSecurityManager,
Anonymous056,
Anonymous205,
Anonymous092,
Anonymous278,
Anonymous375,
Anonymous086,
Anonymous313,
Anonymous378,
Anonymous347,
Anonymous208,
Anonymous308,
Anonymous257,
Anonymous046,
Anonymous247,
Anonymous207,
Anonymous307,
Anonymous297,
Anonymous253,
Anonymous121,
Anonymous348,
Anonymous165,
Anonymous175,
Anonymous141,
DNS,
NSSErrors,
Anonymous191,
Anonymous293,
Anonymous343,
Alerts,
Directory,
Anonymous037,
Predictor,
XULRuntime,
Anonymous342,
Preferences,
Anonymous127,
Anonymous090,
Dashboard,
Anonymous340,
Anonymous041,
Anonymous312,
Anonymous161,
Anonymous210,
Anonymous181,
Anonymous238,
Anonymous128,
Anonymous194,
Anonymous085,
Anonymous125,
Anonymous351,
Anonymous144,
Anonymous305,
Anonymous295,
Anonymous220,
Anonymous094,
SiteSecurity,
Anonymous018,
Anonymous367,
Anonymous087,
Anonymous262,
Anonymous298,
Anonymous050,
Anonymous156,
Anonymous138,
WindowWatcher,
Anonymous093,
HttpActivityDistributor,
Anonymous206,
Anonymous216,
Anonymous281,
Anonymous221,
Anonymous202,
Anonymous120,
Anonymous168,
Anonymous311,
Anonymous315,
Anonymous292,
Anonymous116,
Anonymous054,
Anonymous060,
Anonymous013,
Anonymous227,
Prefetch,
Anonymous321,
Anonymous055,
Anonymous225,
AsyncShutdown,
Anonymous176,
Anonymous341,
NetworkErrorLogging,
Anonymous009,
Anonymous105,
AuthPromptAdapter,
Anonymous101,
UrlClassifierStreamUpdater,
Anonymous155,
Anonymous277,
Anonymous255,
Anonymous020,
Anonymous327,
Anonymous271,
FileProtocolHandler,
Anonymous072,
Anonymous276,
Anonymous314,
StreamTransport,
Anonymous015,
Anonymous022,
Anonymous021,
Anonymous059,
ChromeRegistry,
CookieBannerService,
Anonymous346,
Anonymous104,
Anonymous179,
Anonymous335,
Anonymous001,
Anonymous065,
NSSComponent,
Anonymous349,
Anonymous029,
Anonymous244,
Anonymous107,
Anonymous115,
Anonymous048,
Observer,
Anonymous147,
Anonymous038,
DownloadPlatform,
Anonymous376,
Anonymous212,
Anonymous204,
Anonymous031,
Anonymous329,
PrivateAttribution,
Anonymous356,
Anonymous028,
UrlClassifierPrefixSet,
Anonymous326,
Anonymous145,
Anonymous080,
PageThumbsStorage,
Anonymous123,
Anonymous249,
TextToSubURI,
IO,
Anonymous187,
Anonymous079,
Anonymous289,
Anonymous089,
Anonymous152,
Anonymous049,
Anonymous213,
Anonymous002,
Anonymous195,
Anonymous131,
Anonymous185,
Anonymous197,
Anonymous180,
Anonymous316,
Anonymous188,
Anonymous332,
Anonymous322,
Anonymous084,
Anonymous071,
Anonymous097,
Anonymous361,
Anonymous359,
SocketTransport,
Anonymous299,
History,
Anonymous019,
Anonymous290,
Anonymous033,
Anonymous333,
AlertNotification,
Anonymous150,
Anonymous256,
Anonymous163,
Anonymous004,
Anonymous309,
Anonymous198,
Anonymous215,
Anonymous132,
Anonymous174,
Anonymous061,
Anonymous099,
Anonymous294,
Anonymous239,
Anonymous252,
Anonymous069,
Anonymous366,
Anonymous199,
Anonymous228,
IDN,
Anonymous203,
Anonymous096,
Anonymous074,
ServiceWorkerManager,
Anonymous272,
Anonymous189,
CacheStorage,
Anonymous017,
Anonymous166,
Anonymous118,
Anonymous318,
Anonymous371,
Anonymous091,
Anonymous073,
Anonymous345,
Anonymous042,
Anonymous183,
Anonymous075,
Anonymous317,
Anonymous296,
PermissionManager,
Anonymous260,
Anonymous284,
Anonymous112,
Anonymous224,
Anonymous159,
Anonymous102,
Anonymous023,
Anonymous164,
Anonymous373,
Anonymous280,
Anonymous261,
Anonymous151,
Anonymous052,
Anonymous201,
AppStartup,
Anonymous352,
Anonymous025,
Anonymous214,
Anonymous157,
Anonymous325,
Anonymous237,
Anonymous064,
ApplicationReputation,
URIFixup,
Anonymous231,
DocLoader,
Anonymous057,
Anonymous088,
Anonymous282,
RFPService,
Anonymous243,
Anonymous047,
Anonymous211,
Anonymous142,
Anonymous279,
Anonymous246,
Anonymous117,
Anonymous003,
Anonymous006,
Anonymous266,
Anonymous135,
Anonymous330,
GfxInfo,
Anonymous184,
Anonymous083,
Anonymous139,
MimeHeaderParam,
Anonymous177,
Anonymous368,
Anonymous030,
Anonymous016,
Anonymous149,
Anonymous110,
CaptivePortal,
Anonymous012,
FindService,
Anonymous263,
Anonymous172,
IdentityCredentialStorageService,
TypeAheadFind,
Anonymous248,
Anonymous338,
Anonymous362,
ScriptSecurityManager,
Anonymous027,
Anonymous301,
CredentialChooserService,
Anonymous171,
Anonymous154,
EffectiveTLD,
Anonymous250,
};
// May be added as a friend function to allow constructing services via
// private constructors and init methods.
nsresult CreateInstanceImpl(ModuleID aID, const nsIID& aIID, void** aResult);
class MOZ_STACK_CLASS StaticModuleHelper : public nsCOMPtr_helper {
public:
StaticModuleHelper(ModuleID aId, nsresult* aErrorPtr)
: mId(aId), mErrorPtr(aErrorPtr) {}
protected:
nsresult SetResult(nsresult aRv) const {
if (mErrorPtr) {
*mErrorPtr = aRv;
}
return aRv;
}
ModuleID mId;
nsresult* mErrorPtr;
};
class MOZ_STACK_CLASS GetServiceHelper final : public StaticModuleHelper {
public:
using StaticModuleHelper::StaticModuleHelper;
nsresult NS_FASTCALL operator()(const nsIID& aIID,
void** aResult) const override;
};
class MOZ_STACK_CLASS CreateInstanceHelper final : public StaticModuleHelper {
public:
using StaticModuleHelper::StaticModuleHelper;
nsresult NS_FASTCALL operator()(const nsIID& aIID,
void** aResult) const override;
};
class Components final {
public:
static const nsID& GetCID(ModuleID aID);
};
} // namespace xpcom
namespace components {
namespace AddonContentPolicy {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::AddonContentPolicy);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AddonContentPolicy, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AddonContentPolicy, aRv};
}
} // namespace AddonContentPolicy
namespace AlertNotification {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::AlertNotification);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AlertNotification, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AlertNotification, aRv};
}
} // namespace AlertNotification
namespace Alerts {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Alerts);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Alerts, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Alerts, aRv};
}
} // namespace Alerts
namespace AppStartup {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::AppStartup);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AppStartup, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AppStartup, aRv};
}
} // namespace AppStartup
namespace ApplicationReputation {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ApplicationReputation);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ApplicationReputation, aRv};
}
} // namespace ApplicationReputation
namespace AsyncShutdown {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::AsyncShutdown);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AsyncShutdown, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AsyncShutdown, aRv};
}
} // namespace AsyncShutdown
namespace AuthPromptAdapter {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::AuthPromptAdapter);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AuthPromptAdapter, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::AuthPromptAdapter, aRv};
}
} // namespace AuthPromptAdapter
namespace BounceTrackingProtection {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::BounceTrackingProtection);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::BounceTrackingProtection, aRv};
}
} // namespace BounceTrackingProtection
namespace CacheStorage {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::CacheStorage);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CacheStorage, aRv};
}
} // namespace CacheStorage
namespace CaptivePortal {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::CaptivePortal);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CaptivePortal, aRv};
}
} // namespace CaptivePortal
namespace CategoryManager {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::CategoryManager);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CategoryManager, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CategoryManager, aRv};
}
} // namespace CategoryManager
namespace ChromeRegistry {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ChromeRegistry);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ChromeRegistry, aRv};
}
} // namespace ChromeRegistry
namespace Console {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Console);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Console, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Console, aRv};
}
} // namespace Console
namespace ContentSecurityManager {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ContentSecurityManager);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ContentSecurityManager, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ContentSecurityManager, aRv};
}
} // namespace ContentSecurityManager
namespace CookieBannerService {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::CookieBannerService);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CookieBannerService, aRv};
}
} // namespace CookieBannerService
namespace CredentialChooserService {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::CredentialChooserService);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CredentialChooserService, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::CredentialChooserService, aRv};
}
} // namespace CredentialChooserService
namespace DNS {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::DNS);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::DNS, aRv};
}
} // namespace DNS
namespace Dashboard {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Dashboard);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Dashboard, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Dashboard, aRv};
}
} // namespace Dashboard
namespace Directory {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Directory);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Directory, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Directory, aRv};
}
} // namespace Directory
namespace DocLoader {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::DocLoader);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::DocLoader, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::DocLoader, aRv};
}
} // namespace DocLoader
namespace DownloadPlatform {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::DownloadPlatform);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::DownloadPlatform, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::DownloadPlatform, aRv};
}
} // namespace DownloadPlatform
namespace EffectiveTLD {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::EffectiveTLD);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::EffectiveTLD, aRv};
}
} // namespace EffectiveTLD
namespace ExtensionPolicy {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ExtensionPolicy);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ExtensionPolicy, aRv};
}
} // namespace ExtensionPolicy
namespace ExternalProtocolHandler {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ExternalProtocolHandler);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ExternalProtocolHandler, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ExternalProtocolHandler, aRv};
}
} // namespace ExternalProtocolHandler
namespace FileProtocolHandler {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::FileProtocolHandler);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::FileProtocolHandler, aRv};
}
} // namespace FileProtocolHandler
namespace FindService {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::FindService);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::FindService, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::FindService, aRv};
}
} // namespace FindService
namespace GfxInfo {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::GfxInfo);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::GfxInfo, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::GfxInfo, aRv};
}
} // namespace GfxInfo
namespace History {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::History);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::History, aRv};
}
} // namespace History
namespace HttpActivityDistributor {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::HttpActivityDistributor);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::HttpActivityDistributor, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::HttpActivityDistributor, aRv};
}
} // namespace HttpActivityDistributor
namespace HttpHandler {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::HttpHandler);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::HttpHandler, aRv};
}
} // namespace HttpHandler
namespace IDN {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::IDN);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::IDN, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::IDN, aRv};
}
} // namespace IDN
namespace IO {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::IO);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::IO, aRv};
}
} // namespace IO
namespace IdentityCredentialPromptService {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::IdentityCredentialPromptService);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::IdentityCredentialPromptService, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::IdentityCredentialPromptService, aRv};
}
} // namespace IdentityCredentialPromptService
namespace IdentityCredentialStorageService {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::IdentityCredentialStorageService);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::IdentityCredentialStorageService, aRv};
}
} // namespace IdentityCredentialStorageService
namespace Locale {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Locale);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Locale, aRv};
}
} // namespace Locale
namespace MimeHeaderParam {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::MimeHeaderParam);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::MimeHeaderParam, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::MimeHeaderParam, aRv};
}
} // namespace MimeHeaderParam
namespace NSSCertificateDB {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::NSSCertificateDB);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NSSCertificateDB, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NSSCertificateDB, aRv};
}
} // namespace NSSCertificateDB
namespace NSSComponent {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::NSSComponent);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NSSComponent, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NSSComponent, aRv};
}
} // namespace NSSComponent
namespace NSSErrors {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::NSSErrors);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NSSErrors, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NSSErrors, aRv};
}
} // namespace NSSErrors
namespace NetworkErrorLogging {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::NetworkErrorLogging);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::NetworkErrorLogging, aRv};
}
} // namespace NetworkErrorLogging
namespace Observer {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Observer);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Observer, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Observer, aRv};
}
} // namespace Observer
namespace PageThumbsStorage {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::PageThumbsStorage);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::PageThumbsStorage, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::PageThumbsStorage, aRv};
}
} // namespace PageThumbsStorage
namespace PermissionManager {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::PermissionManager);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::PermissionManager, aRv};
}
} // namespace PermissionManager
namespace Predictor {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Predictor);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Predictor, aRv};
}
} // namespace Predictor
namespace Preferences {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Preferences);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Preferences, aRv};
}
} // namespace Preferences
namespace Prefetch {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::Prefetch);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Prefetch, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::Prefetch, aRv};
}
} // namespace Prefetch
namespace PrivateAttribution {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::PrivateAttribution);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::PrivateAttribution, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::PrivateAttribution, aRv};
}
} // namespace PrivateAttribution
namespace ProtocolProxy {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ProtocolProxy);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ProtocolProxy, aRv};
}
} // namespace ProtocolProxy
namespace RFPService {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::RFPService);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::RFPService, aRv};
}
} // namespace RFPService
namespace RandomGenerator {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::RandomGenerator);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::RandomGenerator, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::RandomGenerator, aRv};
}
} // namespace RandomGenerator
namespace ScriptSecurityManager {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ScriptSecurityManager);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ScriptSecurityManager, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ScriptSecurityManager, aRv};
}
} // namespace ScriptSecurityManager
namespace ServiceWorkerManager {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ServiceWorkerManager);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ServiceWorkerManager, aRv};
}
} // namespace ServiceWorkerManager
namespace SiteSecurity {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::SiteSecurity);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::SiteSecurity, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::SiteSecurity, aRv};
}
} // namespace SiteSecurity
namespace SocketTransport {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::SocketTransport);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::SocketTransport, aRv};
}
} // namespace SocketTransport
namespace StreamConverter {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::StreamConverter);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::StreamConverter, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::StreamConverter, aRv};
}
} // namespace StreamConverter
namespace StreamTransport {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::StreamTransport);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::StreamTransport, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::StreamTransport, aRv};
}
} // namespace StreamTransport
namespace StringBundle {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::StringBundle);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::StringBundle, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::StringBundle, aRv};
}
} // namespace StringBundle
namespace SystemInfo {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::SystemInfo);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::SystemInfo, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::SystemInfo, aRv};
}
} // namespace SystemInfo
namespace TextToSubURI {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::TextToSubURI);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::TextToSubURI, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::TextToSubURI, aRv};
}
} // namespace TextToSubURI
namespace ThirdPartyUtil {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::ThirdPartyUtil);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ThirdPartyUtil, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::ThirdPartyUtil, aRv};
}
} // namespace ThirdPartyUtil
namespace TypeAheadFind {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::TypeAheadFind);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::TypeAheadFind, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::TypeAheadFind, aRv};
}
} // namespace TypeAheadFind
namespace URIFixup {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::URIFixup);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::URIFixup, aRv};
}
} // namespace URIFixup
namespace URILoader {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::URILoader);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::URILoader, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::URILoader, aRv};
}
} // namespace URILoader
namespace URLQueryStringStripper {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::URLQueryStringStripper);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::URLQueryStringStripper, aRv};
}
} // namespace URLQueryStringStripper
namespace UUIDGenerator {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::UUIDGenerator);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UUIDGenerator, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UUIDGenerator, aRv};
}
} // namespace UUIDGenerator
namespace UrlClassifierDB {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::UrlClassifierDB);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierDB, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierDB, aRv};
}
} // namespace UrlClassifierDB
namespace UrlClassifierPrefixSet {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::UrlClassifierPrefixSet);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierPrefixSet, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierPrefixSet, aRv};
}
} // namespace UrlClassifierPrefixSet
namespace UrlClassifierStreamUpdater {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::UrlClassifierStreamUpdater);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierStreamUpdater, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierStreamUpdater, aRv};
}
} // namespace UrlClassifierStreamUpdater
namespace UrlClassifierUtils {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::UrlClassifierUtils);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierUtils, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::UrlClassifierUtils, aRv};
}
} // namespace UrlClassifierUtils
namespace WindowWatcher {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::WindowWatcher);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::WindowWatcher, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::WindowWatcher, aRv};
}
} // namespace WindowWatcher
namespace XULRuntime {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::XULRuntime);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::XULRuntime, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::XULRuntime, aRv};
}
} // namespace XULRuntime
namespace nsIContentAnalysis {
static inline const nsID& CID() {
return ::mozilla::xpcom::Components::GetCID(::mozilla::xpcom::ModuleID::nsIContentAnalysis);
}
static inline ::mozilla::xpcom::GetServiceHelper Service(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::nsIContentAnalysis, aRv};
}
static inline ::mozilla::xpcom::CreateInstanceHelper Create(nsresult* aRv = nullptr) {
return {::mozilla::xpcom::ModuleID::nsIContentAnalysis, aRv};
}
} // namespace nsIContentAnalysis
} // namespace components
} // namespace mozilla
#endif