Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsWebBrowserModule.cpp File Reference
#include "nsIModule.h"
#include "nsIServiceManager.h"
#include "nsIGenericFactory.h"
#include "nsICategoryManager.h"
#include "nsXPIDLString.h"
#include "nsEmbedCID.h"
#include "nsWebBrowser.h"
#include "nsCommandHandler.h"
#include "nsWebBrowserContentPolicy.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 59 of file nsWebBrowserModule.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 75 of file nsWebBrowserModule.cpp.

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

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

Here is the call graph for this function:


Variable Documentation

Initial value:
{
   { "WebBrowser Component", NS_WEBBROWSER_CID, 
     NS_WEBBROWSER_CONTRACTID, nsWebBrowserConstructor },
   { "CommandHandler Component", NS_COMMANDHANDLER_CID,
     NS_COMMANDHANDLER_CONTRACTID, nsCommandHandlerConstructor },
   { "nsIWebBrowserSetup content policy enforcer", 
     NS_WEBBROWSERCONTENTPOLICY_CID,
     NS_WEBBROWSERCONTENTPOLICY_CONTRACTID,
     nsWebBrowserContentPolicyConstructor,
     RegisterContentPolicy, UnregisterContentPolicy }
}

Definition at line 91 of file nsWebBrowserModule.cpp.