2007-03-22 10:30:00 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-06-10 11:11:40 -07:00
|
|
|
#include "mozilla/ModuleUtils.h"
|
2009-07-01 22:48:08 -07:00
|
|
|
#include "nsPluginHost.h"
|
2009-06-25 14:06:54 -07:00
|
|
|
#include "nsPluginsCID.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-07-01 22:48:08 -07:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsPluginHost, nsPluginHost::GetInst)
|
2010-06-10 11:11:40 -07:00
|
|
|
NS_DEFINE_NAMED_CID(NS_PLUGIN_HOST_CID);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-06-10 11:11:40 -07:00
|
|
|
static const mozilla::Module::CIDEntry kPluginCIDs[] = {
|
|
|
|
{ &kNS_PLUGIN_HOST_CID, false, NULL, nsPluginHostConstructor },
|
|
|
|
{ NULL }
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2010-06-10 11:11:40 -07:00
|
|
|
static const mozilla::Module::ContractIDEntry kPluginContracts[] = {
|
|
|
|
{ MOZ_PLUGIN_HOST_CONTRACTID, &kNS_PLUGIN_HOST_CID },
|
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kPluginModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kPluginCIDs,
|
|
|
|
kPluginContracts
|
|
|
|
};
|
|
|
|
|
|
|
|
NSMODULE_DEFN(nsPluginModule) = &kPluginModule;
|