2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2005-04-05 22:27:19 +00:00
|
|
|
|
2010-06-10 18:11:40 +00:00
|
|
|
#include "mozilla/ModuleUtils.h"
|
2005-04-05 22:27:35 +00:00
|
|
|
#include "nsAppStartup.h"
|
2015-07-07 02:17:00 +00:00
|
|
|
#include "nsNetCID.h"
|
2005-04-05 22:27:35 +00:00
|
|
|
#include "nsUserInfo.h"
|
2005-04-05 22:27:49 +00:00
|
|
|
#include "nsToolkitCompsCID.h"
|
2010-04-29 18:35:39 +00:00
|
|
|
#include "nsFindService.h"
|
2015-04-15 00:00:02 +00:00
|
|
|
#if defined(MOZ_UPDATER) && !defined(MOZ_WIDGET_ANDROID)
|
2012-05-22 14:50:04 +00:00
|
|
|
#include "nsUpdateDriver.h"
|
|
|
|
#endif
|
2008-03-29 07:12:13 +00:00
|
|
|
|
2014-05-05 18:24:25 +00:00
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
|
|
#include "nsParentalControlsService.h"
|
2008-03-29 07:12:13 +00:00
|
|
|
#endif
|
|
|
|
|
2005-04-05 22:27:27 +00:00
|
|
|
#include "nsAlertsService.h"
|
2005-04-05 22:27:49 +00:00
|
|
|
|
2005-04-05 22:27:27 +00:00
|
|
|
#include "nsDownloadManager.h"
|
2013-09-03 17:23:37 +00:00
|
|
|
#include "DownloadPlatform.h"
|
2005-04-05 22:27:27 +00:00
|
|
|
#include "nsDownloadProxy.h"
|
2010-04-29 18:35:39 +00:00
|
|
|
#include "rdf.h"
|
2006-01-31 22:03:34 +00:00
|
|
|
|
2005-04-05 22:27:39 +00:00
|
|
|
#include "nsTypeAheadFind.h"
|
2005-04-05 22:27:19 +00:00
|
|
|
|
2006-05-05 21:42:47 +00:00
|
|
|
#ifdef MOZ_URL_CLASSIFIER
|
2013-09-26 13:51:59 +00:00
|
|
|
#include "ApplicationReputation.h"
|
2006-05-05 21:42:47 +00:00
|
|
|
#include "nsUrlClassifierDBService.h"
|
2006-06-15 19:10:04 +00:00
|
|
|
#include "nsUrlClassifierStreamUpdater.h"
|
2007-02-27 23:49:44 +00:00
|
|
|
#include "nsUrlClassifierUtils.h"
|
2011-09-08 20:15:08 +00:00
|
|
|
#include "nsUrlClassifierPrefixSet.h"
|
2006-05-05 21:42:47 +00:00
|
|
|
#endif
|
|
|
|
|
2010-03-03 11:19:57 +00:00
|
|
|
#include "nsBrowserStatusFilter.h"
|
2013-10-12 18:17:43 +00:00
|
|
|
#include "mozilla/FinalizationWitnessService.h"
|
2014-03-14 14:13:26 +00:00
|
|
|
#include "mozilla/NativeOSFileInternals.h"
|
2014-06-21 18:54:28 +00:00
|
|
|
#include "mozilla/AddonPathService.h"
|
2010-03-03 11:19:57 +00:00
|
|
|
|
2014-09-02 10:34:00 +00:00
|
|
|
#if defined(XP_WIN)
|
|
|
|
#include "NativeFileWatcherWin.h"
|
|
|
|
#else
|
|
|
|
#include "NativeFileWatcherNotSupported.h"
|
|
|
|
#endif // (XP_WIN)
|
|
|
|
|
2014-11-10 13:55:02 +00:00
|
|
|
#if !defined(MOZ_WIDGET_GONK) && !defined(MOZ_WIDGET_ANDROID)
|
|
|
|
#define MOZ_HAS_TERMINATOR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
|
|
|
#include "nsTerminator.h"
|
|
|
|
#endif
|
|
|
|
|
2015-04-18 12:26:13 +00:00
|
|
|
#if defined(NIGHTLY_BUILD)
|
|
|
|
#define MOZ_HAS_PERFSTATS
|
|
|
|
#endif // defined(NIGHTLY_BUILD)
|
|
|
|
|
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
#include "nsPerformanceStats.h"
|
2015-04-18 12:26:13 +00:00
|
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
|
2013-12-09 02:53:46 +00:00
|
|
|
using namespace mozilla;
|
|
|
|
|
2005-04-05 22:27:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-04-05 22:27:35 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAppStartup, Init)
|
2014-11-10 13:55:02 +00:00
|
|
|
|
2015-04-18 12:26:13 +00:00
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPerformanceStatsService)
|
2015-04-18 12:26:13 +00:00
|
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
|
2014-11-10 13:55:02 +00:00
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
2014-08-26 12:54:43 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTerminator)
|
2014-11-10 13:55:02 +00:00
|
|
|
#endif
|
2014-08-26 12:54:43 +00:00
|
|
|
|
2005-04-05 22:27:35 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserInfo)
|
2010-04-29 18:35:39 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsFindService)
|
2005-04-05 22:27:35 +00:00
|
|
|
|
2014-05-05 18:24:25 +00:00
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsParentalControlsService)
|
2008-03-29 07:12:13 +00:00
|
|
|
#endif
|
|
|
|
|
2005-04-05 22:27:27 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAlertsService)
|
2005-04-05 22:27:49 +00:00
|
|
|
|
2007-07-12 20:01:57 +00:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsDownloadManager,
|
2013-07-26 04:25:43 +00:00
|
|
|
nsDownloadManager::GetSingleton)
|
2013-09-03 17:23:37 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(DownloadPlatform)
|
2005-07-27 20:42:44 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDownloadProxy)
|
2006-01-31 22:03:34 +00:00
|
|
|
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTypeAheadFind)
|
2005-04-05 22:27:19 +00:00
|
|
|
|
2006-05-05 21:42:47 +00:00
|
|
|
#ifdef MOZ_URL_CLASSIFIER
|
2013-09-26 13:51:59 +00:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(ApplicationReputationService,
|
|
|
|
ApplicationReputationService::GetSingleton)
|
2011-09-08 20:15:08 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUrlClassifierPrefixSet)
|
2006-06-15 19:10:04 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUrlClassifierStreamUpdater)
|
2007-03-05 05:58:05 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsUrlClassifierUtils, Init)
|
2008-01-05 06:38:30 +00:00
|
|
|
|
2010-06-10 18:11:40 +00:00
|
|
|
static nsresult
|
2008-01-05 06:38:30 +00:00
|
|
|
nsUrlClassifierDBServiceConstructor(nsISupports *aOuter, REFNSIID aIID,
|
|
|
|
void **aResult)
|
|
|
|
{
|
|
|
|
nsresult rv;
|
|
|
|
NS_ENSURE_ARG_POINTER(aResult);
|
|
|
|
NS_ENSURE_NO_AGGREGATION(aOuter);
|
|
|
|
|
|
|
|
nsUrlClassifierDBService *inst = nsUrlClassifierDBService::GetInstance(&rv);
|
2013-10-10 20:38:19 +00:00
|
|
|
if (nullptr == inst) {
|
2008-01-05 06:38:30 +00:00
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
/* NS_ADDREF(inst); */
|
|
|
|
rv = inst->QueryInterface(aIID, aResult);
|
|
|
|
NS_RELEASE(inst);
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
2006-05-05 21:42:47 +00:00
|
|
|
#endif
|
|
|
|
|
2010-03-03 11:19:57 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBrowserStatusFilter)
|
2015-04-15 00:00:02 +00:00
|
|
|
#if defined(MOZ_UPDATER) && !defined(MOZ_WIDGET_ANDROID)
|
2012-05-22 14:50:04 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUpdateProcessor)
|
|
|
|
#endif
|
2015-06-10 22:12:33 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(FinalizationWitnessService, Init)
|
2014-03-14 14:13:26 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(NativeOSFileInternalsService)
|
2014-09-02 10:34:00 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(NativeFileWatcherService, Init)
|
2010-03-03 11:19:57 +00:00
|
|
|
|
2014-06-21 18:54:28 +00:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(AddonPathService, AddonPathService::GetInstance)
|
|
|
|
|
2010-06-10 18:11:40 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_TOOLKIT_APPSTARTUP_CID);
|
2015-04-18 12:26:13 +00:00
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_TOOLKIT_PERFORMANCESTATSSERVICE_CID);
|
2015-04-18 12:26:13 +00:00
|
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
|
|
|
|
2014-11-10 13:55:02 +00:00
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
2014-08-26 12:54:43 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_TOOLKIT_TERMINATOR_CID);
|
2014-11-10 13:55:02 +00:00
|
|
|
#endif
|
2010-06-10 18:11:40 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_USERINFO_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_ALERTSSERVICE_CID);
|
2014-05-05 18:24:25 +00:00
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
2010-06-10 18:11:40 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_PARENTALCONTROLSSERVICE_CID);
|
|
|
|
#endif
|
|
|
|
NS_DEFINE_NAMED_CID(NS_DOWNLOADMANAGER_CID);
|
2013-09-03 17:23:37 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_DOWNLOADPLATFORM_CID);
|
2010-06-10 18:11:40 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_DOWNLOAD_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_FIND_SERVICE_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_TYPEAHEADFIND_CID);
|
|
|
|
#ifdef MOZ_URL_CLASSIFIER
|
2013-09-26 13:51:59 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_APPLICATION_REPUTATION_SERVICE_CID);
|
2011-09-08 20:15:08 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_URLCLASSIFIERPREFIXSET_CID);
|
2010-06-10 18:11:40 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_URLCLASSIFIERDBSERVICE_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_URLCLASSIFIERSTREAMUPDATER_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_URLCLASSIFIERUTILS_CID);
|
|
|
|
#endif
|
|
|
|
NS_DEFINE_NAMED_CID(NS_BROWSERSTATUSFILTER_CID);
|
2015-04-15 00:00:02 +00:00
|
|
|
#if defined(MOZ_UPDATER) && !defined(MOZ_WIDGET_ANDROID)
|
2012-05-22 14:50:04 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_UPDATEPROCESSOR_CID);
|
|
|
|
#endif
|
2013-10-12 18:17:43 +00:00
|
|
|
NS_DEFINE_NAMED_CID(FINALIZATIONWITNESSSERVICE_CID);
|
2014-03-14 14:13:26 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NATIVE_OSFILE_INTERNALS_SERVICE_CID);
|
2014-06-21 18:54:28 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_ADDON_PATH_SERVICE_CID);
|
2014-09-02 10:34:00 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NATIVE_FILEWATCHER_SERVICE_CID);
|
2005-04-05 22:27:19 +00:00
|
|
|
|
2013-12-09 02:53:46 +00:00
|
|
|
static const Module::CIDEntry kToolkitCIDs[] = {
|
2013-10-10 20:38:19 +00:00
|
|
|
{ &kNS_TOOLKIT_APPSTARTUP_CID, false, nullptr, nsAppStartupConstructor },
|
2014-11-10 13:55:02 +00:00
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
2014-08-26 12:54:43 +00:00
|
|
|
{ &kNS_TOOLKIT_TERMINATOR_CID, false, nullptr, nsTerminatorConstructor },
|
2014-11-10 13:55:02 +00:00
|
|
|
#endif
|
2015-04-18 12:26:13 +00:00
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
{ &kNS_TOOLKIT_PERFORMANCESTATSSERVICE_CID, false, nullptr, nsPerformanceStatsServiceConstructor },
|
2015-04-18 12:26:13 +00:00
|
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
2013-10-10 20:38:19 +00:00
|
|
|
{ &kNS_USERINFO_CID, false, nullptr, nsUserInfoConstructor },
|
|
|
|
{ &kNS_ALERTSSERVICE_CID, false, nullptr, nsAlertsServiceConstructor },
|
2014-05-05 18:24:25 +00:00
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
|
|
{ &kNS_PARENTALCONTROLSSERVICE_CID, false, nullptr, nsParentalControlsServiceConstructor },
|
2010-06-10 18:11:40 +00:00
|
|
|
#endif
|
2013-10-10 20:38:19 +00:00
|
|
|
{ &kNS_DOWNLOADMANAGER_CID, false, nullptr, nsDownloadManagerConstructor },
|
|
|
|
{ &kNS_DOWNLOADPLATFORM_CID, false, nullptr, DownloadPlatformConstructor },
|
|
|
|
{ &kNS_DOWNLOAD_CID, false, nullptr, nsDownloadProxyConstructor },
|
|
|
|
{ &kNS_FIND_SERVICE_CID, false, nullptr, nsFindServiceConstructor },
|
|
|
|
{ &kNS_TYPEAHEADFIND_CID, false, nullptr, nsTypeAheadFindConstructor },
|
2010-06-10 18:11:40 +00:00
|
|
|
#ifdef MOZ_URL_CLASSIFIER
|
2013-10-10 20:38:19 +00:00
|
|
|
{ &kNS_APPLICATION_REPUTATION_SERVICE_CID, false, nullptr, ApplicationReputationServiceConstructor },
|
|
|
|
{ &kNS_URLCLASSIFIERPREFIXSET_CID, false, nullptr, nsUrlClassifierPrefixSetConstructor },
|
|
|
|
{ &kNS_URLCLASSIFIERDBSERVICE_CID, false, nullptr, nsUrlClassifierDBServiceConstructor },
|
|
|
|
{ &kNS_URLCLASSIFIERSTREAMUPDATER_CID, false, nullptr, nsUrlClassifierStreamUpdaterConstructor },
|
|
|
|
{ &kNS_URLCLASSIFIERUTILS_CID, false, nullptr, nsUrlClassifierUtilsConstructor },
|
2010-06-10 18:11:40 +00:00
|
|
|
#endif
|
2013-10-10 20:38:19 +00:00
|
|
|
{ &kNS_BROWSERSTATUSFILTER_CID, false, nullptr, nsBrowserStatusFilterConstructor },
|
2015-04-15 00:00:02 +00:00
|
|
|
#if defined(MOZ_UPDATER) && !defined(MOZ_WIDGET_ANDROID)
|
2013-10-10 20:38:19 +00:00
|
|
|
{ &kNS_UPDATEPROCESSOR_CID, false, nullptr, nsUpdateProcessorConstructor },
|
2012-05-22 14:50:04 +00:00
|
|
|
#endif
|
2013-10-23 20:36:09 +00:00
|
|
|
{ &kFINALIZATIONWITNESSSERVICE_CID, false, nullptr, FinalizationWitnessServiceConstructor },
|
2014-03-14 14:13:26 +00:00
|
|
|
{ &kNATIVE_OSFILE_INTERNALS_SERVICE_CID, false, nullptr, NativeOSFileInternalsServiceConstructor },
|
2014-06-21 18:54:28 +00:00
|
|
|
{ &kNS_ADDON_PATH_SERVICE_CID, false, nullptr, AddonPathServiceConstructor },
|
2014-09-02 10:34:00 +00:00
|
|
|
{ &kNATIVE_FILEWATCHER_SERVICE_CID, false, nullptr, NativeFileWatcherServiceConstructor },
|
2013-10-10 20:38:19 +00:00
|
|
|
{ nullptr }
|
2010-06-10 18:11:40 +00:00
|
|
|
};
|
|
|
|
|
2013-12-09 02:53:46 +00:00
|
|
|
static const Module::ContractIDEntry kToolkitContracts[] = {
|
2010-06-10 18:11:40 +00:00
|
|
|
{ NS_APPSTARTUP_CONTRACTID, &kNS_TOOLKIT_APPSTARTUP_CID },
|
2014-11-10 13:55:02 +00:00
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
2014-08-26 12:54:43 +00:00
|
|
|
{ NS_TOOLKIT_TERMINATOR_CONTRACTID, &kNS_TOOLKIT_TERMINATOR_CID },
|
2014-11-10 13:55:02 +00:00
|
|
|
#endif
|
2015-04-18 12:26:13 +00:00
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
2015-03-31 10:40:59 +00:00
|
|
|
{ NS_TOOLKIT_PERFORMANCESTATSSERVICE_CONTRACTID, &kNS_TOOLKIT_PERFORMANCESTATSSERVICE_CID },
|
2015-04-18 12:26:13 +00:00
|
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
2010-06-10 18:11:40 +00:00
|
|
|
{ NS_USERINFO_CONTRACTID, &kNS_USERINFO_CID },
|
|
|
|
{ NS_ALERTSERVICE_CONTRACTID, &kNS_ALERTSSERVICE_CID },
|
2014-05-05 18:24:25 +00:00
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
2010-06-10 18:11:40 +00:00
|
|
|
{ NS_PARENTALCONTROLSSERVICE_CONTRACTID, &kNS_PARENTALCONTROLSSERVICE_CID },
|
2008-03-29 07:12:13 +00:00
|
|
|
#endif
|
2010-06-10 18:11:40 +00:00
|
|
|
{ NS_DOWNLOADMANAGER_CONTRACTID, &kNS_DOWNLOADMANAGER_CID },
|
2013-09-03 17:23:37 +00:00
|
|
|
{ NS_DOWNLOADPLATFORM_CONTRACTID, &kNS_DOWNLOADPLATFORM_CID },
|
2010-06-10 18:11:40 +00:00
|
|
|
{ NS_FIND_SERVICE_CONTRACTID, &kNS_FIND_SERVICE_CID },
|
|
|
|
{ NS_TYPEAHEADFIND_CONTRACTID, &kNS_TYPEAHEADFIND_CID },
|
2006-05-05 21:42:47 +00:00
|
|
|
#ifdef MOZ_URL_CLASSIFIER
|
2013-09-26 13:51:59 +00:00
|
|
|
{ NS_APPLICATION_REPUTATION_SERVICE_CONTRACTID, &kNS_APPLICATION_REPUTATION_SERVICE_CID },
|
2011-09-08 20:15:08 +00:00
|
|
|
{ NS_URLCLASSIFIERPREFIXSET_CONTRACTID, &kNS_URLCLASSIFIERPREFIXSET_CID },
|
2010-06-10 18:11:40 +00:00
|
|
|
{ NS_URLCLASSIFIERDBSERVICE_CONTRACTID, &kNS_URLCLASSIFIERDBSERVICE_CID },
|
|
|
|
{ NS_URICLASSIFIERSERVICE_CONTRACTID, &kNS_URLCLASSIFIERDBSERVICE_CID },
|
|
|
|
{ NS_URLCLASSIFIERSTREAMUPDATER_CONTRACTID, &kNS_URLCLASSIFIERSTREAMUPDATER_CID },
|
|
|
|
{ NS_URLCLASSIFIERUTILS_CONTRACTID, &kNS_URLCLASSIFIERUTILS_CID },
|
|
|
|
#endif
|
|
|
|
{ NS_BROWSERSTATUSFILTER_CONTRACTID, &kNS_BROWSERSTATUSFILTER_CID },
|
2015-04-15 00:00:02 +00:00
|
|
|
#if defined(MOZ_UPDATER) && !defined(MOZ_WIDGET_ANDROID)
|
2012-05-22 14:50:04 +00:00
|
|
|
{ NS_UPDATEPROCESSOR_CONTRACTID, &kNS_UPDATEPROCESSOR_CID },
|
|
|
|
#endif
|
2013-10-12 18:17:43 +00:00
|
|
|
{ FINALIZATIONWITNESSSERVICE_CONTRACTID, &kFINALIZATIONWITNESSSERVICE_CID },
|
2014-03-14 14:13:26 +00:00
|
|
|
{ NATIVE_OSFILE_INTERNALS_SERVICE_CONTRACTID, &kNATIVE_OSFILE_INTERNALS_SERVICE_CID },
|
2014-06-21 18:54:28 +00:00
|
|
|
{ NS_ADDONPATHSERVICE_CONTRACTID, &kNS_ADDON_PATH_SERVICE_CID },
|
2014-09-02 10:34:00 +00:00
|
|
|
{ NATIVE_FILEWATCHER_SERVICE_CONTRACTID, &kNATIVE_FILEWATCHER_SERVICE_CID },
|
2013-10-10 20:38:19 +00:00
|
|
|
{ nullptr }
|
2010-06-10 18:11:40 +00:00
|
|
|
};
|
|
|
|
|
2013-12-09 02:53:46 +00:00
|
|
|
static const Module kToolkitModule = {
|
|
|
|
Module::kVersion,
|
2010-06-10 18:11:40 +00:00
|
|
|
kToolkitCIDs,
|
|
|
|
kToolkitContracts
|
2005-04-05 22:27:19 +00:00
|
|
|
};
|
|
|
|
|
2010-06-10 18:11:40 +00:00
|
|
|
NSMODULE_DEFN(nsToolkitCompsModule) = &kToolkitModule;
|