Copy as Markdown

Other Tools

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