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
#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 {
Anonymous140,
Anonymous344,
Anonymous322,
Anonymous250,
Anonymous241,
Anonymous124,
Anonymous195,
Anonymous087,
Anonymous051,
Anonymous312,
Anonymous246,
Anonymous342,
Anonymous232,
Preferences,
Anonymous112,
Anonymous358,
PageThumbsStorage,
Anonymous314,
Anonymous223,
Anonymous019,
Anonymous390,
Anonymous156,
Anonymous103,
Anonymous022,
Anonymous253,
Anonymous261,
Anonymous002,
Predictor,
Anonymous031,
Anonymous113,
Anonymous280,
Anonymous143,
PrivateAttribution,
Anonymous265,
Anonymous367,
Anonymous290,
Anonymous032,
Anonymous292,
Anonymous099,
Anonymous057,
BounceTrackingProtection,
Anonymous045,
Anonymous098,
Anonymous397,
Anonymous361,
Anonymous067,
DownloadPlatform,
Anonymous337,
Anonymous033,
Anonymous165,
Anonymous212,
Anonymous302,
Anonymous255,
Anonymous115,
Anonymous202,
Anonymous252,
StreamConverter,
IDN,
Anonymous217,
Anonymous038,
Anonymous127,
HttpActivityDistributor,
Anonymous176,
Anonymous016,
ContentSecurityManager,
Anonymous299,
Anonymous211,
Anonymous172,
Anonymous301,
Anonymous170,
Anonymous138,
Anonymous321,
Prefetch,
Anonymous220,
Anonymous345,
Anonymous145,
DocLoader,
Anonymous106,
Anonymous346,
Anonymous233,
ThirdPartyUtil,
Anonymous310,
Anonymous161,
URILoader,
Anonymous147,
Anonymous230,
Anonymous275,
Anonymous348,
Anonymous191,
Anonymous393,
Anonymous355,
Anonymous155,
Anonymous109,
Anonymous054,
Anonymous069,
Anonymous375,
Anonymous373,
Anonymous377,
GfxInfo,
Anonymous196,
Anonymous213,
Anonymous186,
Anonymous376,
Anonymous050,
Anonymous296,
Anonymous133,
Anonymous035,
Anonymous013,
Anonymous194,
Anonymous068,
Anonymous203,
Anonymous084,
CookieBannerService,
Anonymous126,
UUIDGenerator,
Anonymous169,
Anonymous027,
Anonymous187,
StreamTransport,
Anonymous006,
Anonymous368,
Anonymous305,
Anonymous024,
Anonymous130,
Anonymous105,
Anonymous273,
Anonymous044,
Anonymous180,
Anonymous234,
AppStartup,
Anonymous005,
Anonymous128,
Anonymous277,
RFPService,
AuthPromptAdapter,
Anonymous291,
Anonymous177,
Anonymous359,
Anonymous395,
ExtensionPolicy,
SiteSecurity,
Anonymous328,
Anonymous078,
HttpHandler,
Anonymous339,
Anonymous248,
Anonymous125,
Anonymous039,
Anonymous144,
Anonymous366,
Anonymous123,
Anonymous317,
UrlClassifierPrefixSet,
Anonymous357,
Anonymous284,
Anonymous208,
Anonymous215,
Anonymous201,
Anonymous100,
Anonymous350,
Anonymous049,
Anonymous352,
Anonymous389,
Anonymous197,
Anonymous257,
Anonymous121,
Anonymous340,
Anonymous011,
Anonymous070,
Anonymous134,
Anonymous131,
Anonymous020,
AddonContentPolicy,
Anonymous082,
Alerts,
FindService,
Anonymous353,
Anonymous192,
Anonymous077,
Anonymous079,
Anonymous210,
Anonymous365,
NSSCertificateDB,
Anonymous059,
Anonymous089,
Anonymous378,
Anonymous319,
Anonymous216,
Anonymous308,
Anonymous271,
Anonymous163,
Anonymous072,
Anonymous132,
Anonymous235,
Anonymous263,
Anonymous362,
Anonymous221,
Anonymous240,
Anonymous380,
Anonymous193,
ScriptSecurityManager,
Anonymous267,
Anonymous162,
Anonymous242,
Observer,
Anonymous040,
Anonymous064,
PermissionManager,
Anonymous010,
Anonymous025,
Anonymous101,
Anonymous363,
Anonymous364,
Anonymous048,
CaptivePortal,
Anonymous061,
Anonymous287,
Anonymous399,
Anonymous303,
CategoryManager,
AsyncShutdown,
Anonymous093,
Anonymous183,
Anonymous371,
Anonymous114,
Anonymous014,
Anonymous152,
Anonymous012,
Anonymous116,
Anonymous034,
Anonymous053,
Anonymous218,
Anonymous042,
Anonymous198,
MimeHeaderParam,
Anonymous199,
Anonymous071,
Anonymous157,
Anonymous102,
Anonymous081,
Anonymous372,
URIFixup,
Anonymous384,
ExternalProtocolHandler,
Anonymous311,
Anonymous149,
Anonymous356,
Anonymous008,
Anonymous056,
Anonymous369,
Anonymous150,
RandomGenerator,
Anonymous374,
Anonymous185,
Anonymous058,
Dashboard,
Anonymous154,
Anonymous398,
TextToSubURI,
Anonymous136,
Anonymous164,
NSSComponent,
Anonymous269,
Anonymous166,
Anonymous205,
URLQueryStringStripper,
Anonymous329,
Directory,
Anonymous200,
Anonymous139,
Anonymous153,
Anonymous160,
Anonymous085,
Anonymous338,
Anonymous306,
Anonymous090,
Anonymous118,
Anonymous327,
Anonymous341,
Anonymous080,
XULRuntime,
Anonymous283,
Anonymous117,
Anonymous286,
Anonymous238,
Anonymous256,
Anonymous018,
Anonymous354,
Anonymous151,
Anonymous029,
Anonymous184,
Anonymous178,
StringBundle,
Anonymous174,
Anonymous041,
Anonymous135,
Anonymous137,
Anonymous394,
Anonymous086,
Anonymous247,
Anonymous168,
Anonymous096,
Anonymous386,
Anonymous055,
UrlClassifierDB,
Anonymous030,
FileProtocolHandler,
Anonymous335,
Locale,
Anonymous188,
Anonymous343,
Anonymous074,
Anonymous237,
Anonymous167,
Anonymous307,
Anonymous094,
Anonymous148,
Anonymous298,
Anonymous189,
Anonymous207,
Anonymous264,
Anonymous122,
IO,
Anonymous300,
Anonymous258,
Anonymous204,
Anonymous276,
Anonymous083,
Anonymous272,
Anonymous293,
Anonymous111,
Anonymous091,
History,
Anonymous060,
Anonymous245,
Anonymous239,
Anonymous171,
Anonymous392,
Anonymous004,
Anonymous304,
Anonymous017,
EffectiveTLD,
Anonymous243,
Anonymous046,
Anonymous388,
Anonymous244,
Anonymous228,
Anonymous349,
CacheStorage,
Anonymous107,
Anonymous294,
Anonymous097,
Anonymous313,
Anonymous063,
Anonymous001,
Anonymous110,
NSSErrors,
TypeAheadFind,
Anonymous222,
Anonymous227,
Anonymous219,
Anonymous120,
Anonymous336,
SocketTransport,
Anonymous141,
Anonymous095,
Anonymous331,
Anonymous326,
Anonymous073,
Anonymous052,
Anonymous062,
Anonymous190,
Anonymous259,
Anonymous036,
Anonymous021,
Anonymous332,
ProtocolProxy,
Anonymous209,
IdentityCredentialPromptService,
Anonymous370,
AlertNotification,
Anonymous396,
Anonymous104,
UrlClassifierStreamUpdater,
Anonymous092,
ApplicationReputation,
Anonymous325,
Anonymous142,
CredentialChooserService,
Anonymous066,
Anonymous206,
Anonymous320,
Anonymous281,
Anonymous387,
Anonymous224,
Anonymous391,
Anonymous007,
Anonymous381,
Anonymous065,
Anonymous249,
Anonymous159,
Anonymous278,
Anonymous379,
Anonymous043,
Anonymous295,
Anonymous289,
Anonymous315,
Anonymous268,
WindowWatcher,
Anonymous382,
Anonymous181,
Console,
ServiceWorkerManager,
Anonymous316,
Anonymous231,
Anonymous383,
Anonymous000,
Anonymous279,
Anonymous129,
Anonymous182,
Anonymous037,
Anonymous385,
Anonymous262,
Anonymous288,
Anonymous075,
Anonymous146,
Anonymous088,
Anonymous323,
DNS,
Anonymous270,
Anonymous225,
Anonymous351,
Anonymous260,
Anonymous309,
Anonymous173,
Anonymous282,
Anonymous330,
Anonymous158,
IdentityCredentialStorageService,
Anonymous347,
Anonymous108,
Anonymous229,
UrlClassifierUtils,
Anonymous297,
NetworkErrorLogging,
Anonymous226,
Anonymous179,
Anonymous333,
Anonymous251,
Anonymous047,
Anonymous028,
Anonymous175,
Anonymous360,
SystemInfo,
Anonymous009,
ChromeRegistry,
Anonymous318,
Anonymous214,
Anonymous266,
Anonymous285,
Anonymous236,
Anonymous023,
Anonymous076,
Anonymous334,
Anonymous274,
nsIContentAnalysis,
Anonymous119,
Anonymous026,
Anonymous003,
Anonymous324,
Anonymous015,
Anonymous254,
};
// 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