30 #include "nsIGenericFactory.h"
33 #define NS_GENERIC_FACTORY_SIMPLETON_CONSTRUCTOR( _Interface ) \
34 static _Interface * m_Simpleton = NULL; \
35 static _Interface * _Interface##SimpletonConstructor( void ) \
37 NS_IF_ADDREF( m_Simpleton ? m_Simpleton : ( NS_IF_ADDREF( m_Simpleton = new _Interface() ), m_Simpleton ) ); \
40 NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR( _Interface, _Interface##SimpletonConstructor )
44 static NS_IMETHODIMP CNetworkProxyImportFactoryDestructor()
56 CNetworkProxyImportConstructor,
59 CNetworkProxyImportFactoryDestructor
static CNetworkProxyImport * m_Simpleton
#define SONGBIRD_NetworkProxyImport_CLASSNAME
Songbird NetworkProxyImport Component Definition.
#define NS_GENERIC_FACTORY_SIMPLETON_CONSTRUCTOR(_Interface)
#define SONGBIRD_NetworkProxyImport_CID
#define SONGBIRD_NetworkProxyImport_CONTRACTID
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
static nsModuleComponentInfo components[]