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