extensions/pref/autoconfig/src/nsConfigFactory.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.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "mozilla/ModuleUtils.h"
     7 #include "nsAutoConfig.h"
     8 #include "nsReadConfig.h"
     9 #include "nsIAppStartupNotifier.h"
    11 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAutoConfig, Init)
    12 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsReadConfig, Init)
    14 NS_DEFINE_NAMED_CID(NS_AUTOCONFIG_CID);
    15 NS_DEFINE_NAMED_CID(NS_READCONFIG_CID);
    17 static const mozilla::Module::CIDEntry kAutoConfigCIDs[] = {
    18   { &kNS_AUTOCONFIG_CID, false, nullptr, nsAutoConfigConstructor },
    19   { &kNS_READCONFIG_CID, false, nullptr, nsReadConfigConstructor },
    20   { nullptr }
    21 };
    23 static const mozilla::Module::ContractIDEntry kAutoConfigContracts[] = {
    24   { NS_AUTOCONFIG_CONTRACTID, &kNS_AUTOCONFIG_CID },
    25   { NS_READCONFIG_CONTRACTID, &kNS_READCONFIG_CID },
    26   { nullptr }
    27 };
    29 static const mozilla::Module::CategoryEntry kAutoConfigCategories[] = {
    30   { "pref-config-startup", "ReadConfig Module", NS_READCONFIG_CONTRACTID },
    31   { nullptr }
    32 };
    34 static const mozilla::Module kAutoConfigModule = {
    35   mozilla::Module::kVersion,
    36   kAutoConfigCIDs,
    37   kAutoConfigContracts,
    38   kAutoConfigCategories
    39 };
    41 NSMODULE_DEFN(nsAutoConfigModule) = &kAutoConfigModule;

mercurial