if (aIID.Equals(kILoadGroupIID)) { *aInstancePtr = (void*)(nsILoadGroup*)this; NS_ADDREF_THIS(); return NS_OK; } #endif return NS_NOINTERFACE;
if (aIID.Equals(kRefreshURLIID)) { *aInstancePtrResult = (void*) ((nsIRefreshUrl*)this); NS_ADDREF_THIS(); return NS_OK; } #endif return NS_NOINTERFACE;
nsDocLoaderImpl::QueryInterface(REFNSIID aIID, void** aInstancePtr){    if (NULL == aInstancePtr) {        return NS_ERROR_NULL_POINTER;    }    if (aIID.Equals(kIDocumentLoaderIID)) {        *aInstancePtr = (void*)(nsIDocumentLoader*)this;        NS_ADDREF_THIS();        return NS_OK;    }#ifndef NECKO    if (aIID.Equals(kILoadGroupIID)) {        *aInstancePtr = (void*)(nsILoadGroup*)this;        NS_ADDREF_THIS();        return NS_OK;    }#endif // NECKO    return NS_NOINTERFACE;}