if (mListener) mListener->OnFileAvailable(pathAndFilename); } #else if(nsnull != mStreamFile) { fclose(mStreamFile); mStreamFile = nsnull;  if (mListener) mListener->OnFileAvailable(mFileName); } #endif return NS_OK;
nsPluginCacheListener::OnStopRequest(nsIURI* aURL, nsresult aStatus, const PRUnichar* aMsg)#endif // NECKO{#ifdef USE_CACHE	if (nsnull != mCachedFile)		{		PRInt32 len;		nsCachePref* cachePref = nsCachePref::GetInstance();		const char* cachePath = cachePref->DiskCacheFolder();		const char* filename = mCachedFile->Filename();		// we need to pass the whole path and filename to the plugin		len = PL_strlen(cachePath) + PL_strlen(filename) + 1;		char* pathAndFilename = (char*)PR_Malloc(len * sizeof(char));		pathAndFilename = PL_strcpy(pathAndFilename, cachePath);		pathAndFilename = PL_strcat(pathAndFilename, filename);		const char* urlString;		aURL->GetSpec(&urlString);		if (mListener)		  mListener->OnFileAvailable(pathAndFilename);		}#else // USE_CACHE	if(nsnull != mStreamFile)		{		fclose(mStreamFile);		mStreamFile = nsnull;		if (mListener)		  mListener->OnFileAvailable(mFileName);		}#endif // USE_CACHE	return NS_OK;}