Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsModuleFactory.cpp File Reference
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsContentBlocker.h"
#include "nsXPIDLString.h"
#include "nsICategoryManager.h"

Go to the source code of this file.

Functions

static NS_METHOD RegisterContentPolicy (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD UnregisterContentPolicy (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const nsModuleComponentInfo *info)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_METHOD RegisterContentPolicy ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 48 of file nsModuleFactory.cpp.

Here is the call graph for this function:

static NS_METHOD UnregisterContentPolicy ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const nsModuleComponentInfo info 
) [static]

Definition at line 64 of file nsModuleFactory.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> catman =
      do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv);
  if (NS_FAILED(rv)) return rv;

  return catman->DeleteCategoryEntry("content-policy",
                                     NS_CONTENTBLOCKER_CONTRACTID,
                                     PR_TRUE);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
  { "ContentBlocker",
    NS_CONTENTBLOCKER_CID,
    NS_CONTENTBLOCKER_CONTRACTID,
    nsContentBlockerConstructor,
    RegisterContentPolicy, UnregisterContentPolicy
  }
}

Definition at line 79 of file nsModuleFactory.cpp.