if (aIID.Equals(kDocLoaderImplIID)) { *aInstancePtr = (void*)this;
if (aIID.Equals(kIStreamListenerIID)) { *aInstancePtrResult = (void*) ((nsIStreamListener*)this); AddRef(); return NS_OK; } if (aIID.Equals(kDocumentBindInfoIID)) { *aInstancePtrResult = (void*) this; AddRef(); return NS_OK; } if (aIID.Equals(kINetSupportIID)) { *aInstancePtrResult = (void*) ((nsINetSupport*)this);
nsDocLoaderImpl::QueryInterface(REFNSIID aIID, void** aInstancePtr){  if (NULL == aInstancePtr) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(kIDocumentLoaderIID)) {    *aInstancePtr = (void*)(nsIDocumentLoader*)this;    AddRef();    return NS_OK;  }  if (aIID.Equals(kDocLoaderImplIID)) {    *aInstancePtr = (void*)this;    AddRef();    return NS_OK;  }  return NS_NOINTERFACE;}