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 "nsShellService.h" michael@0: michael@0: #ifdef MOZ_ANDROID_HISTORY michael@0: #include "nsDocShellCID.h" michael@0: #include "nsAndroidHistory.h" michael@0: #define NS_ANDROIDHISTORY_CID \ michael@0: {0xCCAA4880, 0x44DD, 0x40A7, {0xA1, 0x3F, 0x61, 0x56, 0xFC, 0x88, 0x2C, 0x0B}} michael@0: #endif michael@0: michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsShellService) michael@0: NS_DEFINE_NAMED_CID(nsShellService_CID); michael@0: michael@0: #ifdef MOZ_ANDROID_HISTORY michael@0: NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsAndroidHistory, nsAndroidHistory::GetSingleton) michael@0: NS_DEFINE_NAMED_CID(NS_ANDROIDHISTORY_CID); michael@0: #endif michael@0: michael@0: static const mozilla::Module::CIDEntry kBrowserCIDs[] = { michael@0: { &knsShellService_CID, false, nullptr, nsShellServiceConstructor }, michael@0: #ifdef MOZ_ANDROID_HISTORY michael@0: { &kNS_ANDROIDHISTORY_CID, false, nullptr, nsAndroidHistoryConstructor }, michael@0: #endif michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kBrowserContracts[] = { michael@0: { nsShellService_ContractID, &knsShellService_CID }, michael@0: #ifdef MOZ_ANDROID_HISTORY michael@0: { NS_IHISTORY_CONTRACTID, &kNS_ANDROIDHISTORY_CID }, michael@0: #endif michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kBrowserModule = { michael@0: mozilla::Module::kVersion, michael@0: kBrowserCIDs, michael@0: kBrowserContracts michael@0: }; michael@0: michael@0: NSMODULE_DEFN(nsBrowserCompsModule) = &kBrowserModule;