Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsUnknownContentTypeHandler.cpp File Reference
#include "nsUnknownContentTypeHandler.h"
#include "nsIGenericFactory.h"
#include "nsIDOMWindowInternal.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIDocShell.h"
#include "mimetype/nsIMIMEInfo.h"
#include "nsIURI.h"
#include "nsILocalFile.h"
#include "nsIComponentRegistrar.h"
#include "EmbedPrivate.h"
#include "PtMozilla.h"

Go to the source code of this file.

Defines

#define className   nsUnknownContentTypeHandler
#define interfaceName   nsIHelperAppLauncherDialog
#define contractId   NS_IUNKNOWNCONTENTTYPEHANDLER_CONTRACTID

Functions

 NS_IMPL_ADDREF (className)
int Init_nsUnknownContentTypeHandler_Factory ()

Variables

static nsModuleComponentInfo info []

Define Documentation

Definition at line 171 of file nsUnknownContentTypeHandler.cpp.

#define contractId   NS_IUNKNOWNCONTENTTYPEHANDLER_CONTRACTID

Definition at line 173 of file nsUnknownContentTypeHandler.cpp.

Definition at line 172 of file nsUnknownContentTypeHandler.cpp.


Function Documentation

Definition at line 215 of file nsUnknownContentTypeHandler.cpp.

                                                {
       nsresult rv;

       // create a generic factory for UnkHandler
       nsCOMPtr<nsIGenericFactory> factory;
       rv = NS_NewGenericFactory( getter_AddRefs(factory), info );
       if (NS_FAILED(rv))
              return rv;

       // register this factory with the component registrar.
       nsCOMPtr<nsIComponentRegistrar> registrar;
       rv = NS_GetComponentRegistrar(getter_AddRefs(registrar));
       if (NS_FAILED(rv))
              return rv;
       rv = registrar->RegisterFactory( kCID, "nsUnknownContentTypeHandler", NS_IHELPERAPPLAUNCHERDLG_CONTRACTID, factory);
       return NS_OK;
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Initial value:
 {
              {
                     "nsUnknownContentTypeHandler",
                     NS_IHELPERAPPLAUNCHERDIALOG_IID,
                     NS_IHELPERAPPLAUNCHERDLG_CONTRACTID,
                     nsUnknownContentTypeHandlerConstructor
              }
       }

Definition at line 206 of file nsUnknownContentTypeHandler.cpp.