Back to index

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

#include <nsStreamObserverProxy.h>

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

List of all members.

Public Member Functions

 nsStreamObserverEvent (nsStreamProxyBase *proxy, nsIRequest *request, nsISupports *context)
virtual ~nsStreamObserverEvent ()
nsresult FireEvent (nsIEventQueue *)
NS_IMETHOD HandleEvent ()=0

Static Protected Member Functions

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

Protected Attributes

PLEvent mEvent
nsStreamProxyBasemProxy
nsCOMPtr< nsIRequestmRequest
nsCOMPtr< nsISupports > mContext

Detailed Description

Definition at line 86 of file nsStreamObserverProxy.h.


Constructor & Destructor Documentation

nsStreamObserverEvent::nsStreamObserverEvent ( nsStreamProxyBase proxy,
nsIRequest request,
nsISupports *  context 
)

Definition at line 57 of file nsStreamObserverProxy.cpp.

    : mProxy(aProxy)
    , mRequest(aRequest)
    , mContext(aContext)
{
    NS_IF_ADDREF(mProxy);
} 

Definition at line 67 of file nsStreamObserverProxy.cpp.


Member Function Documentation

Definition at line 97 of file nsStreamObserverProxy.cpp.

{
    nsStreamObserverEvent *ev = GET_STREAM_OBSERVER_EVENT(aEvent);
    NS_ASSERTION(ev, "null event");
    delete ev;
}

Here is the caller graph for this function:

Definition at line 73 of file nsStreamObserverProxy.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PR_CALLBACK nsStreamObserverEvent::HandlePLEvent ( PLEvent aEvent) [static, protected]

Definition at line 86 of file nsStreamObserverProxy.cpp.

{
    nsStreamObserverEvent *ev = GET_STREAM_OBSERVER_EVENT(aEvent);
    NS_ASSERTION(ev, "null event");

    // Pass control 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> nsStreamObserverEvent::mContext [protected]

Definition at line 103 of file nsStreamObserverProxy.h.

Definition at line 100 of file nsStreamObserverProxy.h.

Reimplemented in nsOnStopRequestEvent, and nsOnStartRequestEvent.

Definition at line 101 of file nsStreamObserverProxy.h.

Definition at line 102 of file nsStreamObserverProxy.h.


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