2009-02-13 11:41:12 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2009-02-13 11:41:12 -08:00
|
|
|
|
2011-02-27 11:39:49 -08:00
|
|
|
#include "mozilla/ModuleUtils.h"
|
2009-02-13 11:41:12 -08:00
|
|
|
|
2011-08-08 19:37:57 -07:00
|
|
|
#include "nsShellService.h"
|
2009-11-18 13:09:01 -08:00
|
|
|
|
2012-11-09 01:55:59 -08:00
|
|
|
#ifdef MOZ_ANDROID_HISTORY
|
|
|
|
#include "nsDocShellCID.h"
|
|
|
|
#include "nsAndroidHistory.h"
|
|
|
|
#define NS_ANDROIDHISTORY_CID \
|
|
|
|
{0xCCAA4880, 0x44DD, 0x40A7, {0xA1, 0x3F, 0x61, 0x56, 0xFC, 0x88, 0x2C, 0x0B}}
|
|
|
|
#endif
|
|
|
|
|
2011-08-08 19:37:57 -07:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsShellService)
|
|
|
|
NS_DEFINE_NAMED_CID(nsShellService_CID);
|
2009-11-18 13:09:01 -08:00
|
|
|
|
2012-11-09 01:55:59 -08:00
|
|
|
#ifdef MOZ_ANDROID_HISTORY
|
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsAndroidHistory, nsAndroidHistory::GetSingleton)
|
|
|
|
NS_DEFINE_NAMED_CID(NS_ANDROIDHISTORY_CID);
|
|
|
|
#endif
|
|
|
|
|
2011-02-27 11:39:49 -08:00
|
|
|
static const mozilla::Module::CIDEntry kBrowserCIDs[] = {
|
2011-08-08 19:37:57 -07:00
|
|
|
{ &knsShellService_CID, false, NULL, nsShellServiceConstructor },
|
2012-11-09 01:55:59 -08:00
|
|
|
#ifdef MOZ_ANDROID_HISTORY
|
|
|
|
{ &kNS_ANDROIDHISTORY_CID, false, NULL, nsAndroidHistoryConstructor },
|
|
|
|
#endif
|
2011-02-27 11:39:49 -08:00
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
|
2011-08-08 19:37:57 -07:00
|
|
|
{ nsShellService_ContractID, &knsShellService_CID },
|
2012-11-09 01:55:59 -08:00
|
|
|
#ifdef MOZ_ANDROID_HISTORY
|
|
|
|
{ NS_IHISTORY_CONTRACTID, &kNS_ANDROIDHISTORY_CID },
|
|
|
|
#endif
|
2011-02-27 11:39:49 -08:00
|
|
|
{ NULL }
|
2009-02-13 11:41:12 -08:00
|
|
|
};
|
2011-02-27 11:39:49 -08:00
|
|
|
|
|
|
|
static const mozilla::Module kBrowserModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kBrowserCIDs,
|
|
|
|
kBrowserContracts
|
|
|
|
};
|
|
|
|
|
|
|
|
NSMODULE_DEFN(nsBrowserCompsModule) = &kBrowserModule;
|