Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
AutoJSRequest Class Reference

#include <xpcprivate.h>

Collaboration diagram for AutoJSRequest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AutoJSRequest (XPCCallContext &aCCX)
 ~AutoJSRequest ()
void EndRequest ()

Private Member Functions

void BeginRequest ()

Private Attributes

XPCCallContextmCCX
JSContextmCX

Detailed Description

Definition at line 3153 of file xpcprivate.h.


Constructor & Destructor Documentation

Definition at line 3156 of file xpcprivate.h.

      : mCCX(aCCX), mCX(aCCX.GetJSContext()) {BeginRequest();}

Definition at line 3158 of file xpcprivate.h.


Member Function Documentation

void AutoJSRequest::BeginRequest ( ) [inline, private]

Definition at line 3167 of file xpcprivate.h.

                        {
        if(JS_GetContextThread(mCX))
            JS_BeginRequest(mCX);
        else
            mCX = nsnull;
    }

Definition at line 3160 of file xpcprivate.h.

                      {
        if(mCX) {
            JS_EndRequest(mCX);
            mCX = nsnull;
        }
    }

Member Data Documentation

Definition at line 3174 of file xpcprivate.h.

Definition at line 3175 of file xpcprivate.h.


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