From 68b998a06df0dd452fcd1967e65c42f9c0623876 Mon Sep 17 00:00:00 2001 From: "ruslan%netscape.com" Date: Fri, 26 May 2000 21:00:18 +0000 Subject: [PATCH] Make res/chrome handlers implement threadsafe_isupports --- chrome/src/nsChromeProtocolHandler.cpp | 2 +- chrome/src/nsChromeRegistry.cpp | 2 +- content/xul/document/src/nsXULPrototypeCache.cpp | 2 +- netwerk/protocol/res/src/nsResProtocolHandler.cpp | 2 +- rdf/base/src/nsCompositeDataSource.cpp | 2 +- rdf/base/src/nsRDFContainerUtils.cpp | 2 +- rdf/base/src/nsRDFService.cpp | 4 ++-- rdf/chrome/src/nsChromeProtocolHandler.cpp | 2 +- rdf/chrome/src/nsChromeRegistry.cpp | 2 +- rdf/content/src/nsXULPrototypeCache.cpp | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/chrome/src/nsChromeProtocolHandler.cpp b/chrome/src/nsChromeProtocolHandler.cpp index 83d3c9da3f7..8735b02fff3 100644 --- a/chrome/src/nsChromeProtocolHandler.cpp +++ b/chrome/src/nsChromeProtocolHandler.cpp @@ -573,7 +573,7 @@ nsChromeProtocolHandler::~nsChromeProtocolHandler() { } -NS_IMPL_ISUPPORTS(nsChromeProtocolHandler, NS_GET_IID(nsIProtocolHandler)); +NS_IMPL_THREADSAFE_ISUPPORTS(nsChromeProtocolHandler, NS_GET_IID(nsIProtocolHandler)); NS_METHOD nsChromeProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult) diff --git a/chrome/src/nsChromeRegistry.cpp b/chrome/src/nsChromeRegistry.cpp index 19d99a45bdb..d603c2bbe82 100644 --- a/chrome/src/nsChromeRegistry.cpp +++ b/chrome/src/nsChromeRegistry.cpp @@ -265,7 +265,7 @@ nsChromeRegistry::~nsChromeRegistry() } -NS_IMPL_ISUPPORTS1(nsChromeRegistry, nsIChromeRegistry); +NS_IMPL_THREADSAFE_ISUPPORTS1(nsChromeRegistry, nsIChromeRegistry); //////////////////////////////////////////////////////////////////////////////// // nsIChromeRegistry methods: diff --git a/content/xul/document/src/nsXULPrototypeCache.cpp b/content/xul/document/src/nsXULPrototypeCache.cpp index 91acdd31c30..a83f29044e5 100644 --- a/content/xul/document/src/nsXULPrototypeCache.cpp +++ b/content/xul/document/src/nsXULPrototypeCache.cpp @@ -105,7 +105,7 @@ nsXULPrototypeCache::~nsXULPrototypeCache() } -NS_IMPL_ISUPPORTS1(nsXULPrototypeCache, nsIXULPrototypeCache); +NS_IMPL_THREADSAFE_ISUPPORTS1(nsXULPrototypeCache, nsIXULPrototypeCache); NS_IMETHODIMP diff --git a/netwerk/protocol/res/src/nsResProtocolHandler.cpp b/netwerk/protocol/res/src/nsResProtocolHandler.cpp index 436f7a3b0fb..af235cfcea8 100644 --- a/netwerk/protocol/res/src/nsResProtocolHandler.cpp +++ b/netwerk/protocol/res/src/nsResProtocolHandler.cpp @@ -184,7 +184,7 @@ nsResProtocolHandler::~nsResProtocolHandler() mSubstitutions.Enumerate(DeleteCStringArray, nsnull); } -NS_IMPL_ISUPPORTS2(nsResProtocolHandler, nsIResProtocolHandler, nsIProtocolHandler) +NS_IMPL_THREADSAFE_ISUPPORTS2(nsResProtocolHandler, nsIResProtocolHandler, nsIProtocolHandler) NS_METHOD nsResProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult) diff --git a/rdf/base/src/nsCompositeDataSource.cpp b/rdf/base/src/nsCompositeDataSource.cpp index a734e163cba..279c96d577b 100644 --- a/rdf/base/src/nsCompositeDataSource.cpp +++ b/rdf/base/src/nsCompositeDataSource.cpp @@ -556,7 +556,7 @@ CompositeDataSourceImpl::CompositeDataSourceImpl(void) // nsISupports interface // -NS_IMPL_ADDREF(CompositeDataSourceImpl); +NS_IMPL_THREADSAFE_ADDREF(CompositeDataSourceImpl); NS_IMETHODIMP_(nsrefcnt) CompositeDataSourceImpl::Release() diff --git a/rdf/base/src/nsRDFContainerUtils.cpp b/rdf/base/src/nsRDFContainerUtils.cpp index 5240b4e7274..d14c52f5aa6 100644 --- a/rdf/base/src/nsRDFContainerUtils.cpp +++ b/rdf/base/src/nsRDFContainerUtils.cpp @@ -88,7 +88,7 @@ nsIRDFResource* RDFContainerUtilsImpl::kRDF_Alt; //////////////////////////////////////////////////////////////////////// // nsISupports interface -NS_IMPL_ISUPPORTS(RDFContainerUtilsImpl, NS_GET_IID(nsIRDFContainerUtils)); +NS_IMPL_THREADSAFE_ISUPPORTS(RDFContainerUtilsImpl, NS_GET_IID(nsIRDFContainerUtils)); //////////////////////////////////////////////////////////////////////// // nsIRDFContainerUtils interface diff --git a/rdf/base/src/nsRDFService.cpp b/rdf/base/src/nsRDFService.cpp index d6aa6bdec34..d098445053d 100644 --- a/rdf/base/src/nsRDFService.cpp +++ b/rdf/base/src/nsRDFService.cpp @@ -176,8 +176,8 @@ LiteralImpl::~LiteralImpl() NS_RELEASE2(gRDFService, refcnt); } -NS_IMPL_ADDREF(LiteralImpl); -NS_IMPL_RELEASE(LiteralImpl); +NS_IMPL_THREADSAFE_ADDREF(LiteralImpl); +NS_IMPL_THREADSAFE_RELEASE(LiteralImpl); nsresult LiteralImpl::QueryInterface(REFNSIID iid, void** result) diff --git a/rdf/chrome/src/nsChromeProtocolHandler.cpp b/rdf/chrome/src/nsChromeProtocolHandler.cpp index 83d3c9da3f7..8735b02fff3 100644 --- a/rdf/chrome/src/nsChromeProtocolHandler.cpp +++ b/rdf/chrome/src/nsChromeProtocolHandler.cpp @@ -573,7 +573,7 @@ nsChromeProtocolHandler::~nsChromeProtocolHandler() { } -NS_IMPL_ISUPPORTS(nsChromeProtocolHandler, NS_GET_IID(nsIProtocolHandler)); +NS_IMPL_THREADSAFE_ISUPPORTS(nsChromeProtocolHandler, NS_GET_IID(nsIProtocolHandler)); NS_METHOD nsChromeProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult) diff --git a/rdf/chrome/src/nsChromeRegistry.cpp b/rdf/chrome/src/nsChromeRegistry.cpp index 19d99a45bdb..d603c2bbe82 100644 --- a/rdf/chrome/src/nsChromeRegistry.cpp +++ b/rdf/chrome/src/nsChromeRegistry.cpp @@ -265,7 +265,7 @@ nsChromeRegistry::~nsChromeRegistry() } -NS_IMPL_ISUPPORTS1(nsChromeRegistry, nsIChromeRegistry); +NS_IMPL_THREADSAFE_ISUPPORTS1(nsChromeRegistry, nsIChromeRegistry); //////////////////////////////////////////////////////////////////////////////// // nsIChromeRegistry methods: diff --git a/rdf/content/src/nsXULPrototypeCache.cpp b/rdf/content/src/nsXULPrototypeCache.cpp index 91acdd31c30..a83f29044e5 100644 --- a/rdf/content/src/nsXULPrototypeCache.cpp +++ b/rdf/content/src/nsXULPrototypeCache.cpp @@ -105,7 +105,7 @@ nsXULPrototypeCache::~nsXULPrototypeCache() } -NS_IMPL_ISUPPORTS1(nsXULPrototypeCache, nsIXULPrototypeCache); +NS_IMPL_THREADSAFE_ISUPPORTS1(nsXULPrototypeCache, nsIXULPrototypeCache); NS_IMETHODIMP