michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "mozilla/ModuleUtils.h" michael@0: michael@0: #include "nsEntropyCollector.h" michael@0: #include "nsSecureBrowserUIImpl.h" michael@0: #include "nsSecurityWarningDialogs.h" michael@0: #include "nsSiteSecurityService.h" michael@0: michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsEntropyCollector) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsSecureBrowserUIImpl) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsSecurityWarningDialogs, Init) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsSiteSecurityService, Init) michael@0: michael@0: NS_DEFINE_NAMED_CID(NS_ENTROPYCOLLECTOR_CID); michael@0: NS_DEFINE_NAMED_CID(NS_SECURITYWARNINGDIALOGS_CID); michael@0: NS_DEFINE_NAMED_CID(NS_SECURE_BROWSER_UI_CID); michael@0: NS_DEFINE_NAMED_CID(NS_SITE_SECURITY_SERVICE_CID); michael@0: michael@0: static const mozilla::Module::CIDEntry kBOOTCIDs[] = { michael@0: { &kNS_ENTROPYCOLLECTOR_CID, false, nullptr, nsEntropyCollectorConstructor }, michael@0: { &kNS_SECURITYWARNINGDIALOGS_CID, false, nullptr, nsSecurityWarningDialogsConstructor }, michael@0: { &kNS_SECURE_BROWSER_UI_CID, false, nullptr, nsSecureBrowserUIImplConstructor }, michael@0: { &kNS_SITE_SECURITY_SERVICE_CID, false, nullptr, nsSiteSecurityServiceConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kBOOTContracts[] = { michael@0: { NS_ENTROPYCOLLECTOR_CONTRACTID, &kNS_ENTROPYCOLLECTOR_CID }, michael@0: { NS_SECURITYWARNINGDIALOGS_CONTRACTID, &kNS_SECURITYWARNINGDIALOGS_CID }, michael@0: { NS_SECURE_BROWSER_UI_CONTRACTID, &kNS_SECURE_BROWSER_UI_CID }, michael@0: { NS_SSSERVICE_CONTRACTID, &kNS_SITE_SECURITY_SERVICE_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kBootModule = { michael@0: mozilla::Module::kVersion, michael@0: kBOOTCIDs, michael@0: kBOOTContracts michael@0: }; michael@0: michael@0: NSMODULE_DEFN(BOOT) = &kBootModule;