NS_IMPL_ISUPPORTS1(nsPluginByteRangeStreamListener, nsIStreamListener)
nsresult nsPluginStreamInfo::QueryInterface(const nsIID& aIID, void** aInstancePtrResult) { NS_PRECONDITION(nsnull != aInstancePtrResult, "null pointer");  if (nsnull == aInstancePtrResult) return NS_ERROR_NULL_POINTER;  if (aIID.Equals(kIPluginStreamInfoIID)) { *aInstancePtrResult = (void *)((nsIPluginStreamInfo *)this); AddRef(); return NS_OK; }  if (aIID.Equals(kISupportsIID)) { *aInstancePtrResult = (void *)((nsISupports *)((nsIStreamListener *)this)); AddRef(); return NS_OK; }  return NS_NOINTERFACE; }
NS_IMPL_ISUPPORTS1(nsPluginByteRangeStreamListener, nsIStreamListener)