nsIStreamListener* it = new PluginListener(this); if (it == nsnull) return NS_ERROR_OUT_OF_MEMORY; NS_ADDREF(it); *aDocListener = it;
mWindow = aWindow; mViewer = aViewer;
PluginViewerImpl::Init(nsIStreamListener** aDocListener){  nsIStreamListener* it = new PluginListener(this);  if (it == nsnull)    return NS_ERROR_OUT_OF_MEMORY;  NS_ADDREF(it);  *aDocListener = it;  return NS_OK;}