nsIChannel* aChannel)
nsIChannel* channel, nsIContentViewer* aViewer)
void nsDocLoaderImpl::FireOnStartURLLoad(nsDocLoaderImpl* aLoadInitiator,                                         nsIChannel* aChannel){#if defined(DEBUG)  nsXPIDLCString buffer;  GetURIStringFromChannel(aChannel, buffer);  if (aLoadInitiator == this) {    PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,            ("DocLoader:%p: ++ Firing OnStartURLLoad(...)"            "\tURI: %s\n",             this, (const char *) buffer));  } else {    PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,            ("DocLoader:%p: --   Propagating OnStartURLLoad(...)."            "DocLoader:%p  URI:%s\n",             this, aLoadInitiator, (const char *) buffer));  }#endif /* DEBUG */  PRInt32 count;  /*   * First notify any observers that the URL load has begun...   *   * Operate the elements from back to front so that if items get   * get removed from the list it won't affect our iteration   */  count = mDocObservers.Count();  while (count > 0) {    nsIDocumentLoaderObserver *observer;    observer = NS_STATIC_CAST(nsIDocumentLoaderObserver*, mDocObservers.ElementAt(--count));    NS_ASSERTION(observer, "NULL observer found in list.");    if (! observer) {      continue;    }    observer->OnStartURLLoad(aLoadInitiator, aChannel);  }  /*   * Finally notify the parent...   */  if (mParent) {    mParent->FireOnStartURLLoad(aLoadInitiator, aChannel);  }}