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