Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsAsyncStreamListener.cpp File Reference
#include "nsAsyncStreamListener.h"
#include "nsIInputStream.h"
#include "nsString.h"
#include "nsCRT.h"
#include "nsIEventQueueService.h"
#include "nsIIOService.h"
#include "nsIServiceManager.h"
#include "nsIChannel.h"
#include "prlog.h"

Go to the source code of this file.

Classes

class  nsStreamListenerEvent
class  nsOnStartRequestEvent
class  nsOnStopRequestEvent
class  nsOnDataAvailableEvent

Defines

#define nsStreamListenerEvent   nsStreamListenerEvent0
#define nsOnStartRequestEvent   nsOnStartRequestEvent0
#define nsOnStopRequestEvent   nsOnStopRequestEvent0
#define nsOnDataAvailableEvent   nsOnDataAvailableEvent0
#define GET_STREAM_LISTENER_EVENT(_this)   ((nsStreamListenerEvent*)((char*)(_this) - offsetof(nsStreamListenerEvent, mEvent)))

Functions

static NS_DEFINE_CID (kEventQueueService, NS_EVENTQUEUESERVICE_CID)
 NS_IMPL_THREADSAFE_ISUPPORTS1 (nsAsyncStreamObserver, nsIRequestObserver) NS_IMETHODIMP nsAsyncStreamListener

Define Documentation

#define GET_STREAM_LISTENER_EVENT (   _this)    ((nsStreamListenerEvent*)((char*)(_this) - offsetof(nsStreamListenerEvent, mEvent)))

Definition at line 83 of file nsAsyncStreamListener.cpp.

#define nsOnDataAvailableEvent   nsOnDataAvailableEvent0

Definition at line 58 of file nsAsyncStreamListener.cpp.

#define nsOnStartRequestEvent   nsOnStartRequestEvent0

Definition at line 56 of file nsAsyncStreamListener.cpp.

#define nsOnStopRequestEvent   nsOnStopRequestEvent0

Definition at line 57 of file nsAsyncStreamListener.cpp.

#define nsStreamListenerEvent   nsStreamListenerEvent0

Definition at line 55 of file nsAsyncStreamListener.cpp.


Function Documentation

static NS_DEFINE_CID ( kEventQueueService  ,
NS_EVENTQUEUESERVICE_CID   
) [static]

Definition at line 150 of file nsAsyncStreamListener.cpp.

{
  if (!aInstancePtr) return NS_ERROR_NULL_POINTER;
  if (aIID.Equals(NS_GET_IID(nsIAsyncStreamListener))) {
    *aInstancePtr = NS_STATIC_CAST(nsIAsyncStreamListener*, this);
    NS_ADDREF_THIS();
    return NS_OK;
  }
  if (aIID.Equals(NS_GET_IID(nsIStreamListener))) {
    *aInstancePtr = NS_STATIC_CAST(nsIStreamListener*, this);
    NS_ADDREF_THIS();
    return NS_OK;
  }
  return nsAsyncStreamObserver::QueryInterface(aIID, aInstancePtr);
}