Back to index

lightning-sunbird  0.9+nobinonly
Functions
imgRequest.cpp File Reference
#include "imgRequest.h"
#include "imgLoader.h"
#include "imgCache.h"
#include "imgRequestProxy.h"
#include "imgILoader.h"
#include "ImageErrors.h"
#include "ImageLogging.h"
#include "gfxIImageFrame.h"
#include "netCore.h"
#include "nsIChannel.h"
#include "nsICachingChannel.h"
#include "nsILoadGroup.h"
#include "nsIInputStream.h"
#include "nsIMultiPartChannel.h"
#include "nsIHttpChannel.h"
#include "nsIComponentManager.h"
#include "nsIProxyObjectManager.h"
#include "nsIServiceManager.h"
#include "nsISupportsPrimitives.h"
#include "nsAutoLock.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "plstr.h"

Go to the source code of this file.

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS6 (imgRequest, imgILoad, imgIDecoderObserver, imgIContainerObserver, nsIStreamListener, nsIRequestObserver, nsISupportsWeakReference) imgRequest
static NS_METHOD sniff_mimetype_callback (nsIInputStream *in, void *closure, const char *fromRawSegment, PRUint32 toOffset, PRUint32 count, PRUint32 *writeCount)

Function Documentation

Definition at line 75 of file imgRequest.cpp.

                       : 
  mObservers(0),
  mLoading(PR_FALSE), mProcessing(PR_FALSE), mHadLastPart(PR_FALSE),
  mImageStatus(imgIRequest::STATUS_NONE), mState(0),
  mCacheId(0), mValidator(nsnull), mIsMultiPartChannel(PR_FALSE)
{
  /* member initializers and constructor code */
}
static NS_METHOD sniff_mimetype_callback ( nsIInputStream in,
void closure,
const char *  fromRawSegment,
PRUint32  toOffset,
PRUint32  count,
PRUint32 writeCount 
) [static]

Definition at line 911 of file imgRequest.cpp.

{
  imgRequest *request = NS_STATIC_CAST(imgRequest*, closure);

  NS_ASSERTION(request, "request is null!");

  if (count > 0)
    request->SniffMimeType(fromRawSegment, count);

  *writeCount = 0;
  return NS_ERROR_FAILURE;
}

Here is the call graph for this function: