Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Private Member Functions | Private Attributes
ContextHolder Class Reference
Inheritance diagram for ContextHolder:
Inheritance graph
Collaboration diagram for ContextHolder:
Collaboration graph

List of all members.

Public Member Functions

 ContextHolder (JSContext *aOuterCx, JSObject *aSandbox)
JSContextGetJSContext ()
JSContextGetOuterContext ()
void DidEval ()

Static Private Member Functions

static JSBool JS_DLL_CALLBACK ContextHolderBranchCallback (JSContext *cx, JSScript *script)

Private Attributes

XPCAutoJSContext mJSContext
JSBranchCallback mOrigBranchCallback

Detailed Description

Definition at line 2499 of file xpccomponents.cpp.

Constructor & Destructor Documentation

ContextHolder::ContextHolder ( JSContext aOuterCx,
JSObject aSandbox 

Member Function Documentation

Definition at line 2555 of file xpccomponents.cpp.

    ContextHolder* thisObject =
        NS_STATIC_CAST(ContextHolder*, JS_GetContextPrivate(cx));
    NS_ASSERTION(thisObject, "How did that happen?");

    if (thisObject->mOrigBranchCallback) {
        return (thisObject->mOrigBranchCallback)(thisObject->mOuterContext,

    return JS_TRUE;

Here is the call graph for this function:

Definition at line 2514 of file xpccomponents.cpp.

Here is the call graph for this function:

Definition at line 2504 of file xpccomponents.cpp.

        return mJSContext;

Definition at line 2508 of file xpccomponents.cpp.

        NS_ASSERTION(mOuterContext, "GetOuterContext called late");
        return mOuterContext;

Here is the caller graph for this function:

Member Data Documentation

Definition at line 2526 of file xpccomponents.cpp.

JSBranchCallback ContextHolder::mOrigBranchCallback [private]

Definition at line 2527 of file xpccomponents.cpp.

Definition at line 2528 of file xpccomponents.cpp.

The documentation for this class was generated from the following file: