зеркало из https://github.com/mozilla/gecko-dev.git
Bug 884061 - Part 3t: Use NS_DECL_THREADSAFE_ISUPPORTS in startupcache/, r=mwu
--HG-- extra : rebase_source : 8a990b22d5b98b2b25f26530fe1f88ac388ae788
This commit is contained in:
Родитель
d9601afd10
Коммит
8c0bca8e57
|
@ -560,7 +560,7 @@ StartupCache::WriteTimeout(nsITimer *aTimer, void *aClosure)
|
|||
|
||||
// We don't want to refcount StartupCache, so we'll just
|
||||
// hold a ref to this and pass it to observerService instead.
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(StartupCacheListener, nsIObserver)
|
||||
NS_IMPL_ISUPPORTS1(StartupCacheListener, nsIObserver)
|
||||
|
||||
nsresult
|
||||
StartupCacheListener::Observe(nsISupports *subject, const char* topic, const PRUnichar* data)
|
||||
|
@ -715,7 +715,7 @@ StartupCacheDebugOutputStream::PutBuffer(char* aBuffer, uint32_t aLength)
|
|||
|
||||
StartupCacheWrapper* StartupCacheWrapper::gStartupCacheWrapper = nullptr;
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(StartupCacheWrapper, nsIStartupCache)
|
||||
NS_IMPL_ISUPPORTS1(StartupCacheWrapper, nsIStartupCache)
|
||||
|
||||
StartupCacheWrapper* StartupCacheWrapper::GetSingleton()
|
||||
{
|
||||
|
|
|
@ -92,7 +92,7 @@ struct CacheEntry
|
|||
// refcount its listeners, so we'll let it refcount this instead.
|
||||
class StartupCacheListener MOZ_FINAL : public nsIObserver
|
||||
{
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIOBSERVER
|
||||
};
|
||||
|
||||
|
@ -214,7 +214,7 @@ class StartupCacheDebugOutputStream MOZ_FINAL
|
|||
class StartupCacheWrapper MOZ_FINAL
|
||||
: public nsIStartupCache
|
||||
{
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSISTARTUPCACHE
|
||||
|
||||
static StartupCacheWrapper* GetSingleton();
|
||||
|
|
Загрузка…
Ссылка в новой задаче