PageRenderTime 88ms CodeModel.GetById 39ms app.highlight 19ms RepoModel.GetById 22ms app.codeStats 0ms

/gecko_api/include/nsITraceRefcnt.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 157 lines | 88 code | 36 blank | 33 comment | 0 complexity | 9b8c73ee35de4cc55a44ce9b78bb8a5b MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/xpcom/base/nsITraceRefcnt.idl
  3 */
  4
  5#ifndef __gen_nsITraceRefcnt_h__
  6#define __gen_nsITraceRefcnt_h__
  7
  8
  9#ifndef __gen_nsISupports_h__
 10#include "nsISupports.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsITraceRefcnt */
 19#define NS_ITRACEREFCNT_IID_STR "273dc92f-0fe6-4545-96a9-21be77828039"
 20
 21#define NS_ITRACEREFCNT_IID \
 22  {0x273dc92f, 0x0fe6, 0x4545, \
 23    { 0x96, 0xa9, 0x21, 0xbe, 0x77, 0x82, 0x80, 0x39 }}
 24
 25/**  
 26 * nsITraceRefcnt is an interface between XPCOM Glue and XPCOM.
 27 *
 28 * @status DEPRECATED  Replaced by the NS_Log* functions.
 29 * @status FROZEN
 30 */
 31class NS_NO_VTABLE nsITraceRefcnt : public nsISupports {
 32 public: 
 33
 34  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRACEREFCNT_IID)
 35
 36  /* void logAddRef (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeName, in unsigned long aInstanceSize); */
 37  NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName, PRUint32 aInstanceSize) = 0;
 38
 39  /* void logRelease (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeName); */
 40  NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName) = 0;
 41
 42  /* void logCtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInstanceSize); */
 43  NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize) = 0;
 44
 45  /* void logDtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInstanceSize); */
 46  NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize) = 0;
 47
 48  /* void logAddCOMPtr (in voidPtr aPtr, in nsISupports aObject); */
 49  NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject) = 0;
 50
 51  /* void logReleaseCOMPtr (in voidPtr aPtr, in nsISupports aObject); */
 52  NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) = 0;
 53
 54};
 55
 56  NS_DEFINE_STATIC_IID_ACCESSOR(nsITraceRefcnt, NS_ITRACEREFCNT_IID)
 57
 58/* Use this macro when declaring classes that implement this interface. */
 59#define NS_DECL_NSITRACEREFCNT \
 60  NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName, PRUint32 aInstanceSize); \
 61  NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName); \
 62  NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize); \
 63  NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize); \
 64  NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject); \
 65  NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject); 
 66
 67/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 68#define NS_FORWARD_NSITRACEREFCNT(_to) \
 69  NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName, PRUint32 aInstanceSize) { return _to LogAddRef(aPtr, aNewRefcnt, aTypeName, aInstanceSize); } \
 70  NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName) { return _to LogRelease(aPtr, aNewRefcnt, aTypeName); } \
 71  NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize) { return _to LogCtor(aPtr, aTypeName, aInstanceSize); } \
 72  NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize) { return _to LogDtor(aPtr, aTypeName, aInstanceSize); } \
 73  NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject) { return _to LogAddCOMPtr(aPtr, aObject); } \
 74  NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) { return _to LogReleaseCOMPtr(aPtr, aObject); } 
 75
 76/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 77#define NS_FORWARD_SAFE_NSITRACEREFCNT(_to) \
 78  NS_IMETHOD LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName, PRUint32 aInstanceSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogAddRef(aPtr, aNewRefcnt, aTypeName, aInstanceSize); } \
 79  NS_IMETHOD LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogRelease(aPtr, aNewRefcnt, aTypeName); } \
 80  NS_IMETHOD LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogCtor(aPtr, aTypeName, aInstanceSize); } \
 81  NS_IMETHOD LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogDtor(aPtr, aTypeName, aInstanceSize); } \
 82  NS_IMETHOD LogAddCOMPtr(void * aPtr, nsISupports *aObject) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogAddCOMPtr(aPtr, aObject); } \
 83  NS_IMETHOD LogReleaseCOMPtr(void * aPtr, nsISupports *aObject) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogReleaseCOMPtr(aPtr, aObject); } 
 84
 85#if 0
 86/* Use the code below as a template for the implementation class for this interface. */
 87
 88/* Header file */
 89class nsTraceRefcnt : public nsITraceRefcnt
 90{
 91public:
 92  NS_DECL_ISUPPORTS
 93  NS_DECL_NSITRACEREFCNT
 94
 95  nsTraceRefcnt();
 96
 97private:
 98  ~nsTraceRefcnt();
 99
100protected:
101  /* additional members */
102};
103
104/* Implementation file */
105NS_IMPL_ISUPPORTS1(nsTraceRefcnt, nsITraceRefcnt)
106
107nsTraceRefcnt::nsTraceRefcnt()
108{
109  /* member initializers and constructor code */
110}
111
112nsTraceRefcnt::~nsTraceRefcnt()
113{
114  /* destructor code */
115}
116
117/* void logAddRef (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeName, in unsigned long aInstanceSize); */
118NS_IMETHODIMP nsTraceRefcnt::LogAddRef(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName, PRUint32 aInstanceSize)
119{
120    return NS_ERROR_NOT_IMPLEMENTED;
121}
122
123/* void logRelease (in voidPtr aPtr, in nsrefcnt aNewRefcnt, in string aTypeName); */
124NS_IMETHODIMP nsTraceRefcnt::LogRelease(void * aPtr, nsrefcnt aNewRefcnt, const char *aTypeName)
125{
126    return NS_ERROR_NOT_IMPLEMENTED;
127}
128
129/* void logCtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInstanceSize); */
130NS_IMETHODIMP nsTraceRefcnt::LogCtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
131{
132    return NS_ERROR_NOT_IMPLEMENTED;
133}
134
135/* void logDtor (in voidPtr aPtr, in string aTypeName, in unsigned long aInstanceSize); */
136NS_IMETHODIMP nsTraceRefcnt::LogDtor(void * aPtr, const char *aTypeName, PRUint32 aInstanceSize)
137{
138    return NS_ERROR_NOT_IMPLEMENTED;
139}
140
141/* void logAddCOMPtr (in voidPtr aPtr, in nsISupports aObject); */
142NS_IMETHODIMP nsTraceRefcnt::LogAddCOMPtr(void * aPtr, nsISupports *aObject)
143{
144    return NS_ERROR_NOT_IMPLEMENTED;
145}
146
147/* void logReleaseCOMPtr (in voidPtr aPtr, in nsISupports aObject); */
148NS_IMETHODIMP nsTraceRefcnt::LogReleaseCOMPtr(void * aPtr, nsISupports *aObject)
149{
150    return NS_ERROR_NOT_IMPLEMENTED;
151}
152
153/* End of implementation class template. */
154#endif
155
156
157#endif /* __gen_nsITraceRefcnt_h__ */