Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
ProxyJNI.h File Reference
#include <jni.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

JNIEnvCreateProxyJNI (nsIJVMPlugin *jvmPlugin, nsISecureEnv *secureEnv=NULL)
 Creates a proxy JNIEnv using the given JVM plugin, and optional native JNIEnv*.
void DeleteProxyJNI (JNIEnv *proxyEnv)
 Deletes the proxy JNIEnv.
nsISecureEnvGetSecureEnv (JNIEnv *proxyEnv)
 Returns the secure env associated with the given proxy env.
 PR_EXTERN (void) SetSecurityContext(JNIEnv *proxyEnv
 Sets SecurityCotext for proxy env.
 PR_EXTERN (nsresult) GetSecurityContext(JNIEnv *proxyEnv
 Gets current SecurityContext for proxy env.

Variables

nsISecurityContextcontext

Function Documentation

JNIEnv* CreateProxyJNI ( nsIJVMPlugin jvmPlugin,
nsISecureEnv secureEnv = NULL 
)

Creates a proxy JNIEnv using the given JVM plugin, and optional native JNIEnv*.

Definition at line 1743 of file ProxyJNI.cpp.

{
    ProxyJNIEnv* proxyEnv = new ProxyJNIEnv(jvmPlugin, inSecureEnv);
    if (proxyEnv->getSecureEnv() == NULL) {
        delete proxyEnv;
        return NULL;
    }
    return proxyEnv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void DeleteProxyJNI ( JNIEnv proxyEnv)

Deletes the proxy JNIEnv.

Releases the connection to the underlying JVM.

Definition at line 1753 of file ProxyJNI.cpp.

{
    ProxyJNIEnv* proxyEnv = (ProxyJNIEnv*)env;
    if (proxyEnv != NULL)
        delete proxyEnv;
}

Here is the caller graph for this function:

nsISecureEnv* GetSecureEnv ( JNIEnv proxyEnv)

Returns the secure env associated with the given proxy env.

Definition at line 1760 of file ProxyJNI.cpp.

{
    ProxyJNIEnv* proxyEnv = (ProxyJNIEnv*)env;
    return proxyEnv->getSecureEnv();
}

Here is the call graph for this function:

PR_EXTERN ( void  )

Sets SecurityCotext for proxy env.

XPI_Exit.

Gets current SecurityContext for proxy env.


Variable Documentation

Definition at line 72 of file ProxyJNI.h.