Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsStreamObserverProxy.cpp File Reference
#include "nsStreamObserverProxy.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsString.h"

Go to the source code of this file.

Classes

class  nsOnStartRequestEvent
class  nsOnStopRequestEvent

Defines

#define LOG(args)   PR_LOG(gStreamProxyLog, PR_LOG_DEBUG, args)

Functions

static NS_DEFINE_CID (kEventQueueService, NS_EVENTQUEUESERVICE_CID)
 NS_IMPL_THREADSAFE_ISUPPORTS1 (nsStreamProxyBase, nsIStreamObserver) NS_IMETHODIMP nsStreamProxyBase
 NS_IMPL_ISUPPORTS_INHERITED1 (nsStreamObserverProxy, nsStreamProxyBase, nsIStreamObserverProxy) NS_IMETHODIMP nsStreamObserverProxy

Define Documentation

#define LOG (   args)    PR_LOG(gStreamProxyLog, PR_LOG_DEBUG, args)

Definition at line 48 of file nsStreamObserverProxy.cpp.


Function Documentation

static NS_DEFINE_CID ( kEventQueueService  ,
NS_EVENTQUEUESERVICE_CID   
) [static]
NS_IMPL_ISUPPORTS_INHERITED1 ( nsStreamObserverProxy  ,
nsStreamProxyBase  ,
nsIStreamObserverProxy   
)

Definition at line 279 of file nsStreamObserverProxy.cpp.

{
    NS_PRECONDITION(aObserver, "null observer");
    SetReceiver(aObserver);
    return SetEventQueue(aEventQ);
}
NS_IMPL_THREADSAFE_ISUPPORTS1 ( nsStreamProxyBase  ,
nsIStreamObserver   
)

Definition at line 206 of file nsStreamObserverProxy.cpp.

{
    LOG(("nsStreamProxyBase: OnStartRequest [this=%x req=%x]\n", this, aRequest));
    nsOnStartRequestEvent *ev = 
        new nsOnStartRequestEvent(this, aRequest, aContext);
    if (!ev)
        return NS_ERROR_OUT_OF_MEMORY;

    nsresult rv = ev->FireEvent(GetEventQueue());
    if (NS_FAILED(rv))
        delete ev;
    return rv;
}

Here is the call graph for this function: