if (aIID.Equals(kRefreshURLIID)) { *aInstancePtrResult = (void*) ((nsIRefreshUrl*)this); NS_ADDREF_THIS(); return NS_OK; } #endif return NS_NOINTERFACE;
if (aIID.Equals(kILoadGroupIID)) { *aInstancePtr = (void*)(nsILoadGroup*)this; NS_ADDREF_THIS(); return NS_OK; } #endif return NS_NOINTERFACE;
nsDocumentBindInfo::QueryInterface(const nsIID& aIID,                                   void** aInstancePtrResult){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null pointer");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  *aInstancePtrResult = NULL;  if (aIID.Equals(kIStreamObserverIID)) {    *aInstancePtrResult = (void*) ((nsIStreamObserver*)this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kIStreamListenerIID)) {    *aInstancePtrResult = (void*) ((nsIStreamListener*)this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kDocumentBindInfoIID)) {    *aInstancePtrResult = (void*) this;    NS_ADDREF_THIS();    return NS_OK;  }#ifndef NECKO  if (aIID.Equals(kRefreshURLIID)) {    *aInstancePtrResult = (void*) ((nsIRefreshUrl*)this);    NS_ADDREF_THIS();    return NS_OK;  }#endif  return NS_NOINTERFACE;}