DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/xpcom/base/nsICycleCollectorListener.idl
 */

#ifndef __gen_nsICycleCollectorListener_h__
#define __gen_nsICycleCollectorListener_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include <stdio.h>
class nsCycleCollectorLogger;
class nsIFile; /* forward declaration */


/* starting interface:    nsICycleCollectorHandler */
#define NS_ICYCLECOLLECTORHANDLER_IID_STR "7f093367-1492-4b89-87af-c01dbc831246"

#define NS_ICYCLECOLLECTORHANDLER_IID \
  {0x7f093367, 0x1492, 0x4b89, \
    { 0x87, 0xaf, 0xc0, 0x1d, 0xbc, 0x83, 0x12, 0x46 }}

class NS_NO_VTABLE nsICycleCollectorHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICYCLECOLLECTORHANDLER_IID)

  /* void noteRefCountedObject (in ACString aAddress, in unsigned long aRefCount, in ACString aObjectDescription); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NoteRefCountedObject(const nsACString& aAddress, uint32_t aRefCount, const nsACString& aObjectDescription) = 0;

  /* void noteGCedObject (in ACString aAddress, in boolean aMarked, in ACString aObjectDescription, in ACString aCompartmentAddress); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NoteGCedObject(const nsACString& aAddress, bool aMarked, const nsACString& aObjectDescription, const nsACString& aCompartmentAddress) = 0;

  /* void noteEdge (in ACString aFromAddress, in ACString aToAddress, in ACString aEdgeName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NoteEdge(const nsACString& aFromAddress, const nsACString& aToAddress, const nsACString& aEdgeName) = 0;

  /* void describeRoot (in ACString aAddress, in unsigned long aKnownEdges); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DescribeRoot(const nsACString& aAddress, uint32_t aKnownEdges) = 0;

  /* void describeGarbage (in ACString aAddress); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DescribeGarbage(const nsACString& aAddress) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICycleCollectorHandler, NS_ICYCLECOLLECTORHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICYCLECOLLECTORHANDLER \
  NS_IMETHOD NoteRefCountedObject(const nsACString& aAddress, uint32_t aRefCount, const nsACString& aObjectDescription) override; \
  NS_IMETHOD NoteGCedObject(const nsACString& aAddress, bool aMarked, const nsACString& aObjectDescription, const nsACString& aCompartmentAddress) override; \
  NS_IMETHOD NoteEdge(const nsACString& aFromAddress, const nsACString& aToAddress, const nsACString& aEdgeName) override; \
  NS_IMETHOD DescribeRoot(const nsACString& aAddress, uint32_t aKnownEdges) override; \
  NS_IMETHOD DescribeGarbage(const nsACString& aAddress) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICYCLECOLLECTORHANDLER \
  nsresult NoteRefCountedObject(const nsACString& aAddress, uint32_t aRefCount, const nsACString& aObjectDescription); \
  nsresult NoteGCedObject(const nsACString& aAddress, bool aMarked, const nsACString& aObjectDescription, const nsACString& aCompartmentAddress); \
  nsresult NoteEdge(const nsACString& aFromAddress, const nsACString& aToAddress, const nsACString& aEdgeName); \
  nsresult DescribeRoot(const nsACString& aAddress, uint32_t aKnownEdges); \
  nsresult DescribeGarbage(const nsACString& aAddress); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICYCLECOLLECTORHANDLER(_to) \
  NS_IMETHOD NoteRefCountedObject(const nsACString& aAddress, uint32_t aRefCount, const nsACString& aObjectDescription) override { return _to NoteRefCountedObject(aAddress, aRefCount, aObjectDescription); } \
  NS_IMETHOD NoteGCedObject(const nsACString& aAddress, bool aMarked, const nsACString& aObjectDescription, const nsACString& aCompartmentAddress) override { return _to NoteGCedObject(aAddress, aMarked, aObjectDescription, aCompartmentAddress); } \
  NS_IMETHOD NoteEdge(const nsACString& aFromAddress, const nsACString& aToAddress, const nsACString& aEdgeName) override { return _to NoteEdge(aFromAddress, aToAddress, aEdgeName); } \
  NS_IMETHOD DescribeRoot(const nsACString& aAddress, uint32_t aKnownEdges) override { return _to DescribeRoot(aAddress, aKnownEdges); } \
  NS_IMETHOD DescribeGarbage(const nsACString& aAddress) override { return _to DescribeGarbage(aAddress); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICYCLECOLLECTORHANDLER(_to) \
  NS_IMETHOD NoteRefCountedObject(const nsACString& aAddress, uint32_t aRefCount, const nsACString& aObjectDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NoteRefCountedObject(aAddress, aRefCount, aObjectDescription); } \
  NS_IMETHOD NoteGCedObject(const nsACString& aAddress, bool aMarked, const nsACString& aObjectDescription, const nsACString& aCompartmentAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NoteGCedObject(aAddress, aMarked, aObjectDescription, aCompartmentAddress); } \
  NS_IMETHOD NoteEdge(const nsACString& aFromAddress, const nsACString& aToAddress, const nsACString& aEdgeName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NoteEdge(aFromAddress, aToAddress, aEdgeName); } \
  NS_IMETHOD DescribeRoot(const nsACString& aAddress, uint32_t aKnownEdges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DescribeRoot(aAddress, aKnownEdges); } \
  NS_IMETHOD DescribeGarbage(const nsACString& aAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DescribeGarbage(aAddress); } 


/* starting interface:    nsICycleCollectorLogSink */
#define NS_ICYCLECOLLECTORLOGSINK_IID_STR "3ad9875f-d0e4-4ac2-87e3-f127f6c02ce1"

#define NS_ICYCLECOLLECTORLOGSINK_IID \
  {0x3ad9875f, 0xd0e4, 0x4ac2, \
    { 0x87, 0xe3, 0xf1, 0x27, 0xf6, 0xc0, 0x2c, 0xe1 }}

class NS_NO_VTABLE nsICycleCollectorLogSink : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICYCLECOLLECTORLOGSINK_IID)

  /* [noscript] void open (out FILE aGCLog, out FILE aCCLog); */
  NS_IMETHOD Open(FILE * * aGCLog, FILE * * aCCLog) = 0;

  /* void closeGCLog (); */
  NS_IMETHOD CloseGCLog(void) = 0;

  /* void closeCCLog (); */
  NS_IMETHOD CloseCCLog(void) = 0;

  /* attribute AString filenameIdentifier; */
  NS_IMETHOD GetFilenameIdentifier(nsAString& aFilenameIdentifier) = 0;
  NS_IMETHOD SetFilenameIdentifier(const nsAString& aFilenameIdentifier) = 0;

  /* attribute int32_t processIdentifier; */
  NS_IMETHOD GetProcessIdentifier(int32_t *aProcessIdentifier) = 0;
  NS_IMETHOD SetProcessIdentifier(int32_t aProcessIdentifier) = 0;

  /* readonly attribute nsIFile gcLog; */
  NS_IMETHOD GetGcLog(nsIFile **aGcLog) = 0;

  /* readonly attribute nsIFile ccLog; */
  NS_IMETHOD GetCcLog(nsIFile **aCcLog) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICycleCollectorLogSink, NS_ICYCLECOLLECTORLOGSINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICYCLECOLLECTORLOGSINK \
  NS_IMETHOD Open(FILE * * aGCLog, FILE * * aCCLog) override; \
  NS_IMETHOD CloseGCLog(void) override; \
  NS_IMETHOD CloseCCLog(void) override; \
  NS_IMETHOD GetFilenameIdentifier(nsAString& aFilenameIdentifier) override; \
  NS_IMETHOD SetFilenameIdentifier(const nsAString& aFilenameIdentifier) override; \
  NS_IMETHOD GetProcessIdentifier(int32_t *aProcessIdentifier) override; \
  NS_IMETHOD SetProcessIdentifier(int32_t aProcessIdentifier) override; \
  NS_IMETHOD GetGcLog(nsIFile **aGcLog) override; \
  NS_IMETHOD GetCcLog(nsIFile **aCcLog) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICYCLECOLLECTORLOGSINK \
  nsresult Open(FILE * * aGCLog, FILE * * aCCLog); \
  nsresult CloseGCLog(void); \
  nsresult CloseCCLog(void); \
  nsresult GetFilenameIdentifier(nsAString& aFilenameIdentifier); \
  nsresult SetFilenameIdentifier(const nsAString& aFilenameIdentifier); \
  nsresult GetProcessIdentifier(int32_t *aProcessIdentifier); \
  nsresult SetProcessIdentifier(int32_t aProcessIdentifier); \
  nsresult GetGcLog(nsIFile **aGcLog); \
  nsresult GetCcLog(nsIFile **aCcLog); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICYCLECOLLECTORLOGSINK(_to) \
  NS_IMETHOD Open(FILE * * aGCLog, FILE * * aCCLog) override { return _to Open(aGCLog, aCCLog); } \
  NS_IMETHOD CloseGCLog(void) override { return _to CloseGCLog(); } \
  NS_IMETHOD CloseCCLog(void) override { return _to CloseCCLog(); } \
  NS_IMETHOD GetFilenameIdentifier(nsAString& aFilenameIdentifier) override { return _to GetFilenameIdentifier(aFilenameIdentifier); } \
  NS_IMETHOD SetFilenameIdentifier(const nsAString& aFilenameIdentifier) override { return _to SetFilenameIdentifier(aFilenameIdentifier); } \
  NS_IMETHOD GetProcessIdentifier(int32_t *aProcessIdentifier) override { return _to GetProcessIdentifier(aProcessIdentifier); } \
  NS_IMETHOD SetProcessIdentifier(int32_t aProcessIdentifier) override { return _to SetProcessIdentifier(aProcessIdentifier); } \
  NS_IMETHOD GetGcLog(nsIFile **aGcLog) override { return _to GetGcLog(aGcLog); } \
  NS_IMETHOD GetCcLog(nsIFile **aCcLog) override { return _to GetCcLog(aCcLog); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICYCLECOLLECTORLOGSINK(_to) \
  NS_IMETHOD Open(FILE * * aGCLog, FILE * * aCCLog) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aGCLog, aCCLog); } \
  NS_IMETHOD CloseGCLog(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseGCLog(); } \
  NS_IMETHOD CloseCCLog(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseCCLog(); } \
  NS_IMETHOD GetFilenameIdentifier(nsAString& aFilenameIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilenameIdentifier(aFilenameIdentifier); } \
  NS_IMETHOD SetFilenameIdentifier(const nsAString& aFilenameIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilenameIdentifier(aFilenameIdentifier); } \
  NS_IMETHOD GetProcessIdentifier(int32_t *aProcessIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessIdentifier(aProcessIdentifier); } \
  NS_IMETHOD SetProcessIdentifier(int32_t aProcessIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProcessIdentifier(aProcessIdentifier); } \
  NS_IMETHOD GetGcLog(nsIFile **aGcLog) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGcLog(aGcLog); } \
  NS_IMETHOD GetCcLog(nsIFile **aCcLog) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCcLog(aCcLog); } 


/* starting interface:    nsICycleCollectorListener */
#define NS_ICYCLECOLLECTORLISTENER_IID_STR "703b53b6-24f6-40c6-9ea9-aeb2dc53d170"

#define NS_ICYCLECOLLECTORLISTENER_IID \
  {0x703b53b6, 0x24f6, 0x40c6, \
    { 0x9e, 0xa9, 0xae, 0xb2, 0xdc, 0x53, 0xd1, 0x70 }}

class NS_NO_VTABLE nsICycleCollectorListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICYCLECOLLECTORLISTENER_IID)

  /* nsICycleCollectorListener allTraces (); */
  NS_IMETHOD AllTraces(nsICycleCollectorListener **_retval) = 0;

  /* readonly attribute boolean wantAllTraces; */
  NS_IMETHOD GetWantAllTraces(bool *aWantAllTraces) = 0;

  /* attribute boolean disableLog; */
  NS_IMETHOD GetDisableLog(bool *aDisableLog) = 0;
  NS_IMETHOD SetDisableLog(bool aDisableLog) = 0;

  /* attribute nsICycleCollectorLogSink logSink; */
  NS_IMETHOD GetLogSink(nsICycleCollectorLogSink **aLogSink) = 0;
  NS_IMETHOD SetLogSink(nsICycleCollectorLogSink *aLogSink) = 0;

  /* attribute boolean wantAfterProcessing; */
  NS_IMETHOD GetWantAfterProcessing(bool *aWantAfterProcessing) = 0;
  NS_IMETHOD SetWantAfterProcessing(bool aWantAfterProcessing) = 0;

  /* boolean processNext (in nsICycleCollectorHandler aHandler); */
  NS_IMETHOD ProcessNext(nsICycleCollectorHandler *aHandler, bool *_retval) = 0;

  /* [noscript] nsCycleCollectorLoggerPtr asLogger (); */
  NS_IMETHOD AsLogger(nsCycleCollectorLogger * * _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICycleCollectorListener, NS_ICYCLECOLLECTORLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICYCLECOLLECTORLISTENER \
  NS_IMETHOD AllTraces(nsICycleCollectorListener **_retval) override; \
  NS_IMETHOD GetWantAllTraces(bool *aWantAllTraces) override; \
  NS_IMETHOD GetDisableLog(bool *aDisableLog) override; \
  NS_IMETHOD SetDisableLog(bool aDisableLog) override; \
  NS_IMETHOD GetLogSink(nsICycleCollectorLogSink **aLogSink) override; \
  NS_IMETHOD SetLogSink(nsICycleCollectorLogSink *aLogSink) override; \
  NS_IMETHOD GetWantAfterProcessing(bool *aWantAfterProcessing) override; \
  NS_IMETHOD SetWantAfterProcessing(bool aWantAfterProcessing) override; \
  NS_IMETHOD ProcessNext(nsICycleCollectorHandler *aHandler, bool *_retval) override; \
  NS_IMETHOD AsLogger(nsCycleCollectorLogger * * _retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICYCLECOLLECTORLISTENER \
  nsresult AllTraces(nsICycleCollectorListener **_retval); \
  nsresult GetWantAllTraces(bool *aWantAllTraces); \
  nsresult GetDisableLog(bool *aDisableLog); \
  nsresult SetDisableLog(bool aDisableLog); \
  nsresult GetLogSink(nsICycleCollectorLogSink **aLogSink); \
  nsresult SetLogSink(nsICycleCollectorLogSink *aLogSink); \
  nsresult GetWantAfterProcessing(bool *aWantAfterProcessing); \
  nsresult SetWantAfterProcessing(bool aWantAfterProcessing); \
  nsresult ProcessNext(nsICycleCollectorHandler *aHandler, bool *_retval); \
  nsresult AsLogger(nsCycleCollectorLogger * * _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICYCLECOLLECTORLISTENER(_to) \
  NS_IMETHOD AllTraces(nsICycleCollectorListener **_retval) override { return _to AllTraces(_retval); } \
  NS_IMETHOD GetWantAllTraces(bool *aWantAllTraces) override { return _to GetWantAllTraces(aWantAllTraces); } \
  NS_IMETHOD GetDisableLog(bool *aDisableLog) override { return _to GetDisableLog(aDisableLog); } \
  NS_IMETHOD SetDisableLog(bool aDisableLog) override { return _to SetDisableLog(aDisableLog); } \
  NS_IMETHOD GetLogSink(nsICycleCollectorLogSink **aLogSink) override { return _to GetLogSink(aLogSink); } \
  NS_IMETHOD SetLogSink(nsICycleCollectorLogSink *aLogSink) override { return _to SetLogSink(aLogSink); } \
  NS_IMETHOD GetWantAfterProcessing(bool *aWantAfterProcessing) override { return _to GetWantAfterProcessing(aWantAfterProcessing); } \
  NS_IMETHOD SetWantAfterProcessing(bool aWantAfterProcessing) override { return _to SetWantAfterProcessing(aWantAfterProcessing); } \
  NS_IMETHOD ProcessNext(nsICycleCollectorHandler *aHandler, bool *_retval) override { return _to ProcessNext(aHandler, _retval); } \
  NS_IMETHOD AsLogger(nsCycleCollectorLogger * * _retval) override { return _to AsLogger(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICYCLECOLLECTORLISTENER(_to) \
  NS_IMETHOD AllTraces(nsICycleCollectorListener **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AllTraces(_retval); } \
  NS_IMETHOD GetWantAllTraces(bool *aWantAllTraces) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWantAllTraces(aWantAllTraces); } \
  NS_IMETHOD GetDisableLog(bool *aDisableLog) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisableLog(aDisableLog); } \
  NS_IMETHOD SetDisableLog(bool aDisableLog) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisableLog(aDisableLog); } \
  NS_IMETHOD GetLogSink(nsICycleCollectorLogSink **aLogSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogSink(aLogSink); } \
  NS_IMETHOD SetLogSink(nsICycleCollectorLogSink *aLogSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLogSink(aLogSink); } \
  NS_IMETHOD GetWantAfterProcessing(bool *aWantAfterProcessing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWantAfterProcessing(aWantAfterProcessing); } \
  NS_IMETHOD SetWantAfterProcessing(bool aWantAfterProcessing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWantAfterProcessing(aWantAfterProcessing); } \
  NS_IMETHOD ProcessNext(nsICycleCollectorHandler *aHandler, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessNext(aHandler, _retval); } \
  NS_IMETHOD AsLogger(nsCycleCollectorLogger * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsLogger(_retval); } 


#endif /* __gen_nsICycleCollectorListener_h__ */