mobile/android/components/build/nsBrowserModule.cpp

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "mozilla/ModuleUtils.h"
michael@0 7
michael@0 8 #include "nsShellService.h"
michael@0 9
michael@0 10 #ifdef MOZ_ANDROID_HISTORY
michael@0 11 #include "nsDocShellCID.h"
michael@0 12 #include "nsAndroidHistory.h"
michael@0 13 #define NS_ANDROIDHISTORY_CID \
michael@0 14 {0xCCAA4880, 0x44DD, 0x40A7, {0xA1, 0x3F, 0x61, 0x56, 0xFC, 0x88, 0x2C, 0x0B}}
michael@0 15 #endif
michael@0 16
michael@0 17 NS_GENERIC_FACTORY_CONSTRUCTOR(nsShellService)
michael@0 18 NS_DEFINE_NAMED_CID(nsShellService_CID);
michael@0 19
michael@0 20 #ifdef MOZ_ANDROID_HISTORY
michael@0 21 NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsAndroidHistory, nsAndroidHistory::GetSingleton)
michael@0 22 NS_DEFINE_NAMED_CID(NS_ANDROIDHISTORY_CID);
michael@0 23 #endif
michael@0 24
michael@0 25 static const mozilla::Module::CIDEntry kBrowserCIDs[] = {
michael@0 26 { &knsShellService_CID, false, nullptr, nsShellServiceConstructor },
michael@0 27 #ifdef MOZ_ANDROID_HISTORY
michael@0 28 { &kNS_ANDROIDHISTORY_CID, false, nullptr, nsAndroidHistoryConstructor },
michael@0 29 #endif
michael@0 30 { nullptr }
michael@0 31 };
michael@0 32
michael@0 33 static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
michael@0 34 { nsShellService_ContractID, &knsShellService_CID },
michael@0 35 #ifdef MOZ_ANDROID_HISTORY
michael@0 36 { NS_IHISTORY_CONTRACTID, &kNS_ANDROIDHISTORY_CID },
michael@0 37 #endif
michael@0 38 { nullptr }
michael@0 39 };
michael@0 40
michael@0 41 static const mozilla::Module kBrowserModule = {
michael@0 42 mozilla::Module::kVersion,
michael@0 43 kBrowserCIDs,
michael@0 44 kBrowserContracts
michael@0 45 };
michael@0 46
michael@0 47 NSMODULE_DEFN(nsBrowserCompsModule) = &kBrowserModule;

mercurial