Bug 104309 -- moved ContractID string definition for memory service to the idl file, r/sr=jband, vidur

This commit is contained in:
av%netscape.com 2001-10-13 20:40:40 +00:00
parent 615f7a6c15
commit bef41bfad2
2 changed files with 8 additions and 2 deletions

View File

@ -143,3 +143,10 @@ interface nsIMemory : nsISupports
*/
#define NS_MEMORY_PRESSURE_ALLOC_FAILURE (NS_LITERAL_STRING("alloc-failure").get())
%}
%{C++
/**
* ContractID for the global memory service:
*/
#define NS_MEMORY_CONTRACTID "@mozilla.org/xpcom/memory-service;1"
%}

View File

@ -57,8 +57,7 @@ public:
static NS_EXPORT nsIMemory* GetGlobalMemoryService(); // AddRefs
};
// ContractID/CID for the global memory service:
#define NS_MEMORY_CONTRACTID "@mozilla.org/xpcom/memory-service;1"
// CID for the global memory service:
#define NS_MEMORY_CLASSNAME "Global Memory Service"
#define NS_MEMORY_CID \
{ /* 30a04e40-38e7-11d4-8cf5-0060b0fc14a3 */ \