nsresult rv;
nsDocLoaderImpl::AddObserver(nsIDocumentLoaderObserver* aObserver){  // Make sure the observer isn't already in the list  if (mDocObservers.IndexOf(aObserver) == -1) {    mDocObservers.AppendElement(aObserver);  }  return NS_OK;}