Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

nsDocLoader Class Reference

#include <nsDocLoader.h>

Inheritance diagram for nsDocLoader:
Collaboration diagram for nsDocLoader:

List of all members.

Public Member Functions

 nsDocLoader ()
virtual nsresult Init ()
NS_DECL_ISUPPORTS
NS_DECL_NSIDOCUMENTLOADER
NS_DECL_NSIPROGRESSEVENTSINK
NS_DECL_NSISECURITYEVENTSINK
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSIWEBPROGRESS
NS_DECL_NSIINTERFACEREQUESTOR
NS_DECL_NSICHANNELEVENTSINK
NS_DECL_NSISUPPORTSPRIORITY
nsresult 
RemoveChildLoader (nsDocLoader *aChild)
nsresult AddChildLoader (nsDocLoader *aChild)
nsDocLoaderGetParent () const

Static Public Member Functions

static already_AddRefed
< nsDocLoader
GetAsDocLoader (nsISupports *aSupports)
static nsISupportsGetAsSupports (nsDocLoader *aDocLoader)
static nsresult AddDocLoaderAsChildOfRoot (nsDocLoader *aDocLoader)

Protected Member Functions

virtual ~nsDocLoader ()
virtual nsresult SetDocLoaderParent (nsDocLoader *aLoader)
PRBool IsBusy ()
void Destroy ()
virtual void DestroyChildren ()
nsIDocumentLoaderChildAt (PRInt32 i)
nsIDocumentLoaderSafeChildAt (PRInt32 i)
void FireOnProgressChange (nsDocLoader *aLoadInitiator, nsIRequest *request, PRInt64 aProgress, PRInt64 aProgressMax, PRInt64 aProgressDelta, PRInt64 aTotalProgress, PRInt64 aMaxTotalProgress)
void FireOnStateChange (nsIWebProgress *aProgress, nsIRequest *request, PRInt32 aStateFlags, nsresult aStatus)
void FireOnStatusChange (nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar *aMessage)
void FireOnLocationChange (nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsIURI *aUri)
PRBool RefreshAttempted (nsIWebProgress *aWebProgress, nsIURI *aURI, PRInt32 aDelay, PRBool aSameURI)
virtual void OnRedirectStateChange (nsIChannel *aOldChannel, nsIChannel *aNewChannel, PRUint32 aRedirectFlags, PRUint32 aStateFlags)
void doStartDocumentLoad ()
void doStartURLLoad (nsIRequest *request)
void doStopURLLoad (nsIRequest *request, nsresult aStatus)
void doStopDocumentLoad (nsIRequest *request, nsresult aStatus)
PRBool ChildEnteringOnload (nsIDocumentLoader *aChild)
void ChildDoneWithOnload (nsIDocumentLoader *aChild)

Protected Attributes

nsCOMPtr< nsIRequestmDocumentRequest
nsDocLoadermParent
nsVoidArray mListenerInfoList
nsCOMPtr< nsILoadGroupmLoadGroup
nsVoidArray mChildList
PRInt32 mProgressStateFlags
nsInt64 mCurrentSelfProgress
nsInt64 mMaxSelfProgress
nsInt64 mCurrentTotalProgress
nsInt64 mMaxTotalProgress
PLDHashTable mRequestInfoHash
nsInt64 mCompletedTotalProgress
PRPackedBool mIsLoadingDocument
PRPackedBool mIsRestoringDocument
PRPackedBool mIsFlushingLayout

Constructor & Destructor Documentation

nsDocLoader::nsDocLoader (  ) 
virtual nsDocLoader::~nsDocLoader (  )  [protected, virtual]

Member Function Documentation

nsresult nsDocLoader::AddChildLoader ( nsDocLoader aChild  ) 
static nsresult nsDocLoader::AddDocLoaderAsChildOfRoot ( nsDocLoader aDocLoader  )  [static]
nsIDocumentLoader* nsDocLoader::ChildAt ( PRInt32  i  )  [inline, protected]
void nsDocLoader::ChildDoneWithOnload ( nsIDocumentLoader aChild  )  [inline, protected]
PRBool nsDocLoader::ChildEnteringOnload ( nsIDocumentLoader aChild  )  [inline, protected]
void nsDocLoader::Destroy (  )  [protected]
virtual void nsDocLoader::DestroyChildren (  )  [protected, virtual]
void nsDocLoader::doStartDocumentLoad (  )  [protected]
void nsDocLoader::doStartURLLoad ( nsIRequest request  )  [protected]
void nsDocLoader::doStopDocumentLoad ( nsIRequest request,
nsresult  aStatus 
) [protected]
void nsDocLoader::doStopURLLoad ( nsIRequest request,
nsresult  aStatus 
) [protected]
void nsDocLoader::FireOnLocationChange ( nsIWebProgress aWebProgress,
nsIRequest aRequest,
nsIURI aUri 
) [protected]
void nsDocLoader::FireOnProgressChange ( nsDocLoader aLoadInitiator,
nsIRequest request,
PRInt64  aProgress,
PRInt64  aProgressMax,
PRInt64  aProgressDelta,
PRInt64  aTotalProgress,
PRInt64  aMaxTotalProgress 
) [protected]
void nsDocLoader::FireOnStateChange ( nsIWebProgress aProgress,
nsIRequest request,
PRInt32  aStateFlags,
nsresult  aStatus 
) [protected]
void nsDocLoader::FireOnStatusChange ( nsIWebProgress aWebProgress,
nsIRequest aRequest,
nsresult  aStatus,
const PRUnichar aMessage 
) [protected]
static already_AddRefed<nsDocLoader> nsDocLoader::GetAsDocLoader ( nsISupports aSupports  )  [static]
static nsISupports* nsDocLoader::GetAsSupports ( nsDocLoader aDocLoader  )  [inline, static]
nsDocLoader* nsDocLoader::GetParent (  )  const [inline]
virtual nsresult nsDocLoader::Init (  )  [virtual]
PRBool nsDocLoader::IsBusy (  )  [protected]
virtual void nsDocLoader::OnRedirectStateChange ( nsIChannel aOldChannel,
nsIChannel aNewChannel,
PRUint32  aRedirectFlags,
PRUint32  aStateFlags 
) [inline, protected, virtual]
PRBool nsDocLoader::RefreshAttempted ( nsIWebProgress aWebProgress,
nsIURI aURI,
PRInt32  aDelay,
PRBool  aSameURI 
) [protected]
NS_DECL_ISUPPORTS NS_DECL_NSIDOCUMENTLOADER NS_DECL_NSIPROGRESSEVENTSINK NS_DECL_NSISECURITYEVENTSINK NS_DECL_NSIREQUESTOBSERVER NS_DECL_NSIWEBPROGRESS NS_DECL_NSIINTERFACEREQUESTOR NS_DECL_NSICHANNELEVENTSINK NS_DECL_NSISUPPORTSPRIORITY nsresult nsDocLoader::RemoveChildLoader ( nsDocLoader aChild  ) 
nsIDocumentLoader* nsDocLoader::SafeChildAt ( PRInt32  i  )  [inline, protected]
virtual nsresult nsDocLoader::SetDocLoaderParent ( nsDocLoader aLoader  )  [protected, virtual]

Member Data Documentation

nsInt64 nsDocLoader::mCurrentSelfProgress [protected]
nsInt64 nsDocLoader::mMaxSelfProgress [protected]
nsInt64 nsDocLoader::mMaxTotalProgress [protected]
PRInt32 nsDocLoader::mProgressStateFlags [protected]

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