if (callbacks->destroystream != NULL) {  #if !TARGET_CARBON    PRLibrary* lib = nsnull; if(mInst) lib = mInst->fLibrary;  NS_TRY_SAFE_CALL_RETURN(error, CallNPP_DestroyStreamProc(callbacks->destroystream, npp, &mNPStream, NPRES_DONE), lib); if(error != NPERR_NO_ERROR) return NS_ERROR_FAILURE; #endif }   if (callbacks->urlnotify != NULL && mNotifyData != nsnull) { #if !TARGET_CARBON     PRLibrary* lib = nsnull; if(mInst) lib = mInst->fLibrary;  NS_TRY_SAFE_CALL_VOID(CallNPP_URLNotifyProc(callbacks->urlnotify, npp, mNPStream.url, nsPluginReason_Done, mNotifyData), lib); #endif }    return NS_OK;
return NS_OK;
ns4xPluginStreamListener::OnStopBinding(nsIPluginStreamInfo* pluginInfo,                                         nsresult status){    const NPPluginFuncs *callbacks;    NPP                 npp;    NPError error;    pluginInfo->GetURL(&mNPStream.url);    pluginInfo->GetLastModified((PRUint32*)&(mNPStream.lastmodified));    mInst->GetCallbacks(&callbacks);    mInst->GetNPP(&npp);    if (callbacks->destroystream != NULL)    {      // XXX need to convert status to NPReason#if !TARGET_CARBON      // pinkerton      // relies on routine descriptors, not present in carbon.       // We need to fix this.      PRLibrary* lib = nsnull;      if(mInst)        lib = mInst->fLibrary;      NS_TRY_SAFE_CALL_RETURN(error, CallNPP_DestroyStreamProc(callbacks->destroystream,                                        npp,                                        &mNPStream,                                        NPRES_DONE), lib);      if(error != NPERR_NO_ERROR)        return NS_ERROR_FAILURE;#endif    }	// check to see if we have a call back    if (callbacks->urlnotify != NULL && mNotifyData != nsnull)    {#if !TARGET_CARBON      // pinkerton      // relies on routine descriptors, not present in carbon.       // We need to fix this.      PRLibrary* lib = nsnull;      if(mInst)        lib = mInst->fLibrary;      NS_TRY_SAFE_CALL_VOID(CallNPP_URLNotifyProc(callbacks->urlnotify,                            npp,                            mNPStream.url,                            nsPluginReason_Done,                            mNotifyData), lib);#endif    }        return NS_OK;}