bug# 49786 Setting up res protocol handler to support weak ref. r=gagan,valeski

This commit is contained in:
dp%netscape.com 2000-08-22 06:09:52 +00:00
parent e0d0d03e65
commit 7dbf06413a
2 changed files with 3 additions and 2 deletions

View File

@ -141,7 +141,7 @@ nsResProtocolHandler::~nsResProtocolHandler()
PR_DestroyLock(mLock);
}
NS_IMPL_THREADSAFE_ISUPPORTS2(nsResProtocolHandler, nsIResProtocolHandler, nsIProtocolHandler)
NS_IMPL_THREADSAFE_ISUPPORTS3(nsResProtocolHandler, nsIResProtocolHandler, nsIProtocolHandler, nsISupportsWeakReference)
NS_METHOD
nsResProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)

View File

@ -26,8 +26,9 @@
#include "nsIResProtocolHandler.h"
#include "nsHashtable.h"
#include "nsISupportsArray.h"
#include "nsWeakReference.h"
class nsResProtocolHandler : public nsIResProtocolHandler
class nsResProtocolHandler : public nsIResProtocolHandler, public nsSupportsWeakReference
{
public:
NS_DECL_ISUPPORTS