Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsJVMManager.cpp File Reference
#include "nscore.h"
#include "nsJVMManager.h"
#include "nspr.h"
#include "ProxyJNI.h"
#include "nsIPluginHost.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsIWindowWatcher.h"
#include "nsIDOMWindow.h"
#include "nsIScriptGlobalObject.h"
#include "nsPresContext.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeOwner.h"
#include "nsIWebBrowserChrome.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIStringBundle.h"
#include "nsIObserver.h"
#include "nsIPrefBranch.h"
#include "nsIPrefBranch2.h"
#include "nsIPrefService.h"
#include "lcglue.h"
#include "plstr.h"
#include "nsCOMPtr.h"
#include "nsIPrincipal.h"
#include "nsIScriptSecurityManager.h"
#include "nsISignatureVerifier.h"

Go to the source code of this file.

Classes

struct  JVMRunnableEvent

Defines

#define PLUGIN_REGIONAL_URL   "chrome://global-region/locale/region.properties"

Functions

static NS_DEFINE_CID (kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID)
static NS_DEFINE_CID (kJVMManagerCID, NS_JVMMANAGER_CID)
static NS_DEFINE_CID (kPluginManagerCID, NS_PLUGINMANAGER_CID)
static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static NS_DEFINE_IID (kISupportsIID, NS_ISUPPORTS_IID)
static NS_DEFINE_IID (kIJVMManagerIID, NS_IJVMMANAGER_IID)
static NS_DEFINE_IID (kIThreadManagerIID, NS_ITHREADMANAGER_IID)
static NS_DEFINE_IID (kILiveConnectManagerIID, NS_ILIVECONNECTMANAGER_IID)
static NS_DEFINE_IID (kIJVMPluginIID, NS_IJVMPLUGIN_IID)
static nsIJVMPluginGetRunningJVM (void)
static void PR_CALLBACK thread_starter (void *arg)
static void PR_CALLBACK handleRunnableEvent (JVMRunnableEvent *aEvent)
static void PR_CALLBACK destroyRunnableEvent (JVMRunnableEvent *aEvent)
NS_VISIBILITY_DEFAULT nsresult JSJ_RegisterLiveConnectFactory (void)

Variables

int XP_PROGRESS_STARTING_JAVA
int XP_PROGRESS_STARTING_JAVA_DONE
int XP_JAVA_NO_CLASSES
int XP_JAVA_GENERAL_FAILURE
int XP_JAVA_STARTUP_FAILED
int XP_JAVA_DEBUGGER_FAILED
PRLogModuleInfoNSJAVA = NULL

Define Documentation

#define PLUGIN_REGIONAL_URL   "chrome://global-region/locale/region.properties"

Definition at line 125 of file nsJVMManager.cpp.


Function Documentation

static void PR_CALLBACK destroyRunnableEvent ( JVMRunnableEvent aEvent) [static]

Definition at line 309 of file nsJVMManager.cpp.

{
       delete aEvent;
}

Here is the caller graph for this function:

static nsIJVMPlugin * GetRunningJVM ( void  ) [static]

Definition at line 134 of file nsJVMManager.cpp.

{
    nsIJVMPlugin* jvm = NULL;
    nsresult rv;
    nsCOMPtr<nsIJVMManager> managerService = do_GetService(kJVMManagerCID, &rv);
    if (NS_FAILED(rv)) return jvm;
    nsJVMManager* jvmMgr = (nsJVMManager *)managerService.get();
    if (jvmMgr) {
        nsJVMStatus status = jvmMgr->GetJVMStatus();
        if (status == nsJVMStatus_Enabled)
            status = jvmMgr->StartupJVM();
        if (status == nsJVMStatus_Running) {
            jvm = jvmMgr->GetJVMPlugin();
        }
    }
    return jvm;
}

Here is the call graph for this function:

static void PR_CALLBACK handleRunnableEvent ( JVMRunnableEvent aEvent) [static]

Definition at line 303 of file nsJVMManager.cpp.

{
       aEvent->mRunnable->Run();
}

Here is the call graph for this function:

Here is the caller graph for this function:

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 ( kStringBundleServiceCID  ,
NS_STRINGBUNDLESERVICE_CID   
) [static]
static NS_DEFINE_CID ( kJVMManagerCID  ,
NS_JVMMANAGER_CID   
) [static]
static NS_DEFINE_CID ( kPluginManagerCID  ,
NS_PLUGINMANAGER_CID   
) [static]
static NS_DEFINE_IID ( kISupportsIID  ,
NS_ISUPPORTS_IID   
) [static]
static NS_DEFINE_IID ( kIJVMManagerIID  ,
NS_IJVMMANAGER_IID   
) [static]
static NS_DEFINE_IID ( kIThreadManagerIID  ,
NS_ITHREADMANAGER_IID   
) [static]
static NS_DEFINE_IID ( kILiveConnectManagerIID  ,
NS_ILIVECONNECTMANAGER_IID   
) [static]
static NS_DEFINE_IID ( kIJVMPluginIID  ,
NS_IJVMPLUGIN_IID   
) [static]
static void PR_CALLBACK thread_starter ( void arg) [static]

Definition at line 278 of file nsJVMManager.cpp.

{
       nsIRunnable* runnable = (nsIRunnable*) arg;
       if (runnable != NULL) {
              runnable->Run();
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 613 of file nsJVMManager.cpp.

Definition at line 100 of file nsJVMManager.cpp.

Definition at line 98 of file nsJVMManager.cpp.

Definition at line 97 of file nsJVMManager.cpp.

Definition at line 99 of file nsJVMManager.cpp.

Definition at line 95 of file nsJVMManager.cpp.

Definition at line 96 of file nsJVMManager.cpp.