Bug 931738 - Remove nsPurpleBufferEntry from nsISupportsImpl.h. r=smaug

This commit is contained in:
Andrew McCreight 2013-11-26 14:29:59 -05:00
Родитель ebd19c8e62
Коммит 685a29f9b1
4 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -731,6 +731,17 @@ CanonicalizeParticipant(void **parti, nsCycleCollectionParticipant **cp)
}
}
struct nsPurpleBufferEntry {
union {
void *mObject; // when low bit unset
nsPurpleBufferEntry *mNextInFreeList; // when low bit set
};
nsCycleCollectingAutoRefCnt *mRefCnt;
nsCycleCollectionParticipant *mParticipant; // nullptr for nsISupports
};
class nsCycleCollector;
struct nsPurpleBuffer

Просмотреть файл

@ -31,7 +31,6 @@ DECL_CLASS(nsIDirectoryServiceProvider);
DECL_CLASS(nsIMemory);
DECL_CLASS(nsIDebug);
DECL_CLASS(nsITraceRefcnt);
DECL_STRUCT(nsPurpleBufferEntry);
#ifdef __cplusplus
namespace mozilla {

Просмотреть файл

@ -15,6 +15,7 @@
class nsStringContainer;
class nsCStringContainer;
class nsIComponentLoader;
class nsPurpleBufferEntry;
/**
* During this shutdown notification all threads which run XPCOM code must

Просмотреть файл

@ -74,17 +74,6 @@ private:
// Support for ISupports classes which interact with cycle collector.
struct nsPurpleBufferEntry {
union {
void *mObject; // when low bit unset
nsPurpleBufferEntry *mNextInFreeList; // when low bit set
};
nsCycleCollectingAutoRefCnt *mRefCnt;
nsCycleCollectionParticipant *mParticipant; // nullptr for nsISupports
};
#define NS_NUMBER_OF_FLAGS_IN_REFCNT 2
#define NS_IN_PURPLE_BUFFER (1 << 0)
#define NS_IS_PURPLE (1 << 1)