dom/plugins/base/nsPluginModule.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/base/nsPluginModule.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "mozilla/ModuleUtils.h"
    1.10 +#include "nsPluginHost.h"
    1.11 +#include "nsPluginsCID.h"
    1.12 +
    1.13 +NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsPluginHost, nsPluginHost::GetInst)
    1.14 +NS_DEFINE_NAMED_CID(NS_PLUGIN_HOST_CID);
    1.15 +
    1.16 +static const mozilla::Module::CIDEntry kPluginCIDs[] = {
    1.17 +  { &kNS_PLUGIN_HOST_CID, false, nullptr, nsPluginHostConstructor },
    1.18 +  { nullptr }
    1.19 +};
    1.20 +
    1.21 +static const mozilla::Module::ContractIDEntry kPluginContracts[] = {
    1.22 +  { MOZ_PLUGIN_HOST_CONTRACTID, &kNS_PLUGIN_HOST_CID },
    1.23 +  { nullptr }
    1.24 +};
    1.25 +
    1.26 +static const mozilla::Module kPluginModule = {
    1.27 +  mozilla::Module::kVersion,
    1.28 +  kPluginCIDs,
    1.29 +  kPluginContracts
    1.30 +};
    1.31 +
    1.32 +NSMODULE_DEFN(nsPluginModule) = &kPluginModule;

mercurial