PRInt32 count = mDocObservers.Count(); PRInt32 index;
PRInt32 count;  nsCOMPtr<nsIURI> uri;  aDocChannel->GetURI(getter_AddRefs(uri));  #if defined(DEBUG) nsXPIDLCString buffer;  GetURIStringFromChannel(aDocChannel, buffer); if (aLoadInitiator == this) { PR_LOG(gDocLoaderLog, PR_LOG_DEBUG, ("DocLoader:%p: ++ Firing OnStartDocumentLoad(...).\tURI: %s\n", this, (const char *) buffer)); } else { PR_LOG(gDocLoaderLog, PR_LOG_DEBUG, ("DocLoader:%p: --   Propagating OnStartDocumentLoad(...)." "DocLoader:%p  URI:%s\n", this, aLoadInitiator, (const char *) buffer)); } #endif
void nsDocLoaderImpl::FireOnStartDocumentLoad(nsIURL* aURL,                                               const char* aCommand){  PRInt32 count = mDocObservers.Count();  PRInt32 index;  /*   * First notify any observers that the URL load has begun...   */  for (index = 0; index < count; index++) {    nsIDocumentLoaderObserver* observer = (nsIDocumentLoaderObserver*)mDocObservers.ElementAt(index);    observer->OnStartDocumentLoad(aURL, aCommand);  }  /*   * Finally notify the parent...   */  if (nsnull != mParent) {    mParent->FireOnStartDocumentLoad(aURL, aCommand);  }}