Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsDocLoader.cpp File Reference
#include "nspr.h"
#include "prlog.h"
#include "nsDocLoader.h"
#include "nsCURILoader.h"
#include "nsNetUtil.h"
#include "nsIHttpChannel.h"
#include "nsIServiceManager.h"
#include "nsXPIDLString.h"
#include "nsIURL.h"
#include "nsCOMPtr.h"
#include "nscore.h"
#include "nsWeakPtr.h"
#include "nsAutoPtr.h"
#include "nsIDOMWindow.h"
#include "nsIPresShell.h"
#include "nsPresContext.h"
#include "nsIStringBundle.h"
#include "nsIScriptSecurityManager.h"
#include "nsITransport.h"
#include "nsISocketTransport.h"

Go to the source code of this file.

Classes

struct  nsRequestInfo
struct  nsListenerInfo

Functions

static NS_DEFINE_CID (kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID)
static NS_DEFINE_CID (kThisImplCID, NS_THIS_DOCLOADER_IMPL_CID)
 RequestInfoHashInitEntry (PLDHashTable *table, PLDHashEntryHdr *entry, const void *key)
 if (aIID.Equals(kThisImplCID)) foundInterface
 RemoveInfoCallback (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void *arg)
 CalcMaxProgressCallback (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void *arg)

Function Documentation

CalcMaxProgressCallback ( PLDHashTable table,
PLDHashEntryHdr hdr,
PRUint32  number,
void arg 
)

Definition at line 1375 of file nsDocLoader.cpp.

{
  const nsRequestInfo *info = NS_STATIC_CAST(const nsRequestInfo *, hdr);
  nsInt64 *max = NS_STATIC_CAST(nsInt64 *, arg);

  if (info->mMaxProgress < info->mCurrentProgress) {
    *max = nsInt64(-1);

    return PL_DHASH_STOP;
  }

  *max += info->mMaxProgress;

  return PL_DHASH_NEXT;
}

Here is the caller graph for this function:

if ( aIID.  EqualskThisImplCID)
static NS_DEFINE_CID ( kStringBundleServiceCID  ,
NS_STRINGBUNDLESERVICE_CID   
) [static]
static NS_DEFINE_CID ( kThisImplCID  ,
NS_THIS_DOCLOADER_IMPL_CID   
) [static]
RemoveInfoCallback ( PLDHashTable table,
PLDHashEntryHdr hdr,
PRUint32  number,
void arg 
)

Definition at line 1356 of file nsDocLoader.cpp.

{
  return PL_DHASH_REMOVE;
}

Here is the caller graph for this function:

RequestInfoHashInitEntry ( PLDHashTable table,
PLDHashEntryHdr entry,
const void key 
)

Definition at line 109 of file nsDocLoader.cpp.

{
  // Initialize the entry with placement new
  new (entry) nsRequestInfo(key);
  return PR_TRUE;
}

Here is the caller graph for this function: