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: #include "nsPluginHost.h" michael@0: #include "nsPluginsCID.h" michael@0: michael@0: NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsPluginHost, nsPluginHost::GetInst) michael@0: NS_DEFINE_NAMED_CID(NS_PLUGIN_HOST_CID); michael@0: michael@0: static const mozilla::Module::CIDEntry kPluginCIDs[] = { michael@0: { &kNS_PLUGIN_HOST_CID, false, nullptr, nsPluginHostConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kPluginContracts[] = { michael@0: { MOZ_PLUGIN_HOST_CONTRACTID, &kNS_PLUGIN_HOST_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kPluginModule = { michael@0: mozilla::Module::kVersion, michael@0: kPluginCIDs, michael@0: kPluginContracts michael@0: }; michael@0: michael@0: NSMODULE_DEFN(nsPluginModule) = &kPluginModule;