NS_INTERFACE_MAP_BEGIN(nsNntpCacheStreamListener) NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIStreamListener) NS_INTERFACE_MAP_ENTRY(nsIRequestObserver) NS_INTERFACE_MAP_ENTRY(nsIStreamListener) NS_INTERFACE_MAP_END
nsDummyBufferStream::QueryInterface(REFNSIID aIID, void** result) { if (!result) return NS_ERROR_NULL_POINTER; *result = nsnull; if (aIID.Equals(NS_GET_IID(nsIInputStream))) *result = NS_STATIC_CAST(nsIInputStream*, this); if (*result) { AddRef(); return NS_OK; } return NS_ERROR_NO_INTERFACE; }
NS_INTERFACE_MAP_BEGIN(nsNntpCacheStreamListener)   NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIStreamListener)   NS_INTERFACE_MAP_ENTRY(nsIRequestObserver)   NS_INTERFACE_MAP_ENTRY(nsIStreamListener)NS_INTERFACE_MAP_END