Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsCLiveconnectFactory.cpp File Reference
#include "prtypes.h"
#include "nspr.h"
#include "prmem.h"
#include "prmon.h"
#include "prlog.h"
#include "nsXPCOM.h"
#include "nsCLiveconnect.h"
#include "nsCLiveconnectFactory.h"
#include "nsIComponentManager.h"
#include "nsIComponentRegistrar.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kCLiveconnectCID, NS_CLIVECONNECT_CID)
NS_EXPORT nsresult JSJ_RegisterLiveConnectFactory ()

Function Documentation

Definition at line 60 of file nsCLiveconnectFactory.cpp.

{
    nsCOMPtr<nsIComponentRegistrar> registrar;
    nsresult rv = NS_GetComponentRegistrar(getter_AddRefs(registrar));
    if (NS_FAILED(rv))
        return rv;
      
    nsCOMPtr<nsIFactory> factory = new nsCLiveconnectFactory;
    if (factory) {
        return registrar->RegisterFactory(kCLiveconnectCID, "LiveConnect",
                                          "@mozilla.org/liveconnect/liveconnect;1",
                                          factory);
    }
    return NS_ERROR_OUT_OF_MEMORY;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kCLiveconnectCID  ,
NS_CLIVECONNECT_CID   
) [static]