Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes
nsARequestObserverEvent Class Reference

#include <nsRequestObserverProxy.h>

Inheritance diagram for nsARequestObserverEvent:
Inheritance graph
[legend]
Collaboration diagram for nsARequestObserverEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsARequestObserverEvent (nsIRequest *, nsISupports *)
virtual ~nsARequestObserverEvent ()
PLEventGetPLEvent ()
virtual void HandleEvent ()=0
 Implement this method to add code to handle the event.

Static Public Member Functions

static nsARequestObserverEventFromPLEvent (PLEvent *p)

Static Protected Member Functions

static void PR_CALLBACK HandlePLEvent (PLEvent *)
static void PR_CALLBACK DestroyPLEvent (PLEvent *)

Protected Attributes

PLEvent mEvent
nsCOMPtr< nsIRequestmRequest
nsCOMPtr< nsISupports > mContext

Detailed Description

Definition at line 74 of file nsRequestObserverProxy.h.


Constructor & Destructor Documentation

nsARequestObserverEvent::nsARequestObserverEvent ( nsIRequest request,
nsISupports *  context 
)

Definition at line 78 of file nsRequestObserverProxy.h.

{}

Member Function Documentation

Definition at line 119 of file nsRequestObserverProxy.cpp.

{
    nsARequestObserverEvent *ev = FromPLEvent(plev);
    NS_ASSERTION(ev, "null event");
    delete ev;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 80 of file nsRequestObserverProxy.h.

        { return (nsARequestObserverEvent *)
            ( (char *) p - offsetof(nsARequestObserverEvent, mEvent) ); }

Here is the caller graph for this function:

Definition at line 83 of file nsRequestObserverProxy.h.

{ return &mEvent; }

Here is the caller graph for this function:

virtual void nsARequestObserverEvent::HandleEvent ( ) [pure virtual]

Implement this method to add code to handle the event.

Implemented in nsOnDataAvailableEvent, nsOnStopRequestEvent, nsOnStartRequestEvent, nsOnStopRequestEvent, nsOnStopRequestEvent, nsOnStartRequestEvent, nsOnDataAvailableEvent, and nsOnStartRequestEvent.

Here is the caller graph for this function:

Definition at line 108 of file nsRequestObserverProxy.cpp.

{
    nsARequestObserverEvent *ev = FromPLEvent(plev);
    NS_ASSERTION(ev, "null event");

    // Pass control to the real event handler
    if (ev)
        ev->HandleEvent();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

nsCOMPtr<nsISupports> nsARequestObserverEvent::mContext [protected]

Definition at line 97 of file nsRequestObserverProxy.h.

Definition at line 94 of file nsRequestObserverProxy.h.

Definition at line 96 of file nsRequestObserverProxy.h.


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