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

nsIQuotaRequest

nsIQuotaRequestBase

nsIQuotaUsageRequest

Macros

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 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIQuotaRequests.idl
 */

#ifndef __gen_nsIQuotaRequests_h__
#define __gen_nsIQuotaRequests_h__


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

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIPrincipal; /* forward declaration */

class nsIQuotaCallback; /* forward declaration */

class nsIQuotaUsageCallback; /* forward declaration */


/* starting interface:    nsIQuotaRequestBase */
#define NS_IQUOTAREQUESTBASE_IID_STR "9af54222-0407-48fd-a4ab-9457c986fc49"

#define NS_IQUOTAREQUESTBASE_IID \
  {0x9af54222, 0x0407, 0x48fd, \
    { 0xa4, 0xab, 0x94, 0x57, 0xc9, 0x86, 0xfc, 0x49 }}

class NS_NO_VTABLE nsIQuotaRequestBase : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAREQUESTBASE_IID)

  /* readonly attribute nsIPrincipal principal; */
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;

  /* [must_use] readonly attribute nsresult resultCode; */
  MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaRequestBase, NS_IQUOTAREQUESTBASE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIQUOTAREQUESTBASE \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
  MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) 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_NSIQUOTAREQUESTBASE \
  nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
  MOZ_MUST_USE nsresult GetResultCode(nsresult *aResultCode); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIQUOTAREQUESTBASE(_to) \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
  MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) override { return _to GetResultCode(aResultCode); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIQUOTAREQUESTBASE(_to) \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
  MOZ_MUST_USE NS_IMETHOD GetResultCode(nsresult *aResultCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultCode(aResultCode); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsQuotaRequestBase : public nsIQuotaRequestBase
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIQUOTAREQUESTBASE

  nsQuotaRequestBase();

private:
  ~nsQuotaRequestBase();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsQuotaRequestBase, nsIQuotaRequestBase)

nsQuotaRequestBase::nsQuotaRequestBase()
{
  /* member initializers and constructor code */
}

nsQuotaRequestBase::~nsQuotaRequestBase()
{
  /* destructor code */
}

/* readonly attribute nsIPrincipal principal; */
NS_IMETHODIMP nsQuotaRequestBase::GetPrincipal(nsIPrincipal * *aPrincipal)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [must_use] readonly attribute nsresult resultCode; */
MOZ_MUST_USE NS_IMETHODIMP nsQuotaRequestBase::GetResultCode(nsresult *aResultCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIQuotaUsageRequest */
#define NS_IQUOTAUSAGEREQUEST_IID_STR "166e28e6-cf6d-4927-a6d7-b51bca9d3469"

#define NS_IQUOTAUSAGEREQUEST_IID \
  {0x166e28e6, 0xcf6d, 0x4927, \
    { 0xa6, 0xd7, 0xb5, 0x1b, 0xca, 0x9d, 0x34, 0x69 }}

class NS_NO_VTABLE nsIQuotaUsageRequest : public nsIQuotaRequestBase {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAUSAGEREQUEST_IID)

  /* [must_use] readonly attribute unsigned long long usage; */
  MOZ_MUST_USE NS_IMETHOD GetUsage(uint64_t *aUsage) = 0;

  /* [must_use] readonly attribute unsigned long long fileUsage; */
  MOZ_MUST_USE NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) = 0;

  /* [must_use] readonly attribute unsigned long long limit; */
  MOZ_MUST_USE NS_IMETHOD GetLimit(uint64_t *aLimit) = 0;

  /* attribute nsIQuotaUsageCallback callback; */
  NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) = 0;
  NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) = 0;

  /* [must_use] void cancel (); */
  MOZ_MUST_USE NS_IMETHOD Cancel(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaUsageRequest, NS_IQUOTAUSAGEREQUEST_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIQUOTAUSAGEREQUEST \
  MOZ_MUST_USE NS_IMETHOD GetUsage(uint64_t *aUsage) override; \
  MOZ_MUST_USE NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) override; \
  MOZ_MUST_USE NS_IMETHOD GetLimit(uint64_t *aLimit) override; \
  NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) override; \
  NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override; \
  MOZ_MUST_USE NS_IMETHOD Cancel(void) 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_NSIQUOTAUSAGEREQUEST \
  MOZ_MUST_USE nsresult GetUsage(uint64_t *aUsage); \
  MOZ_MUST_USE nsresult GetFileUsage(uint64_t *aFileUsage); \
  MOZ_MUST_USE nsresult GetLimit(uint64_t *aLimit); \
  nsresult GetCallback(nsIQuotaUsageCallback * *aCallback); \
  nsresult SetCallback(nsIQuotaUsageCallback *aCallback); \
  MOZ_MUST_USE nsresult Cancel(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIQUOTAUSAGEREQUEST(_to) \
  MOZ_MUST_USE NS_IMETHOD GetUsage(uint64_t *aUsage) override { return _to GetUsage(aUsage); } \
  MOZ_MUST_USE NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) override { return _to GetFileUsage(aFileUsage); } \
  MOZ_MUST_USE NS_IMETHOD GetLimit(uint64_t *aLimit) override { return _to GetLimit(aLimit); } \
  NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) override { return _to GetCallback(aCallback); } \
  NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override { return _to SetCallback(aCallback); } \
  MOZ_MUST_USE NS_IMETHOD Cancel(void) override { return _to Cancel(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIQUOTAUSAGEREQUEST(_to) \
  MOZ_MUST_USE NS_IMETHOD GetUsage(uint64_t *aUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aUsage); } \
  MOZ_MUST_USE NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileUsage(aFileUsage); } \
  MOZ_MUST_USE NS_IMETHOD GetLimit(uint64_t *aLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLimit(aLimit); } \
  NS_IMETHOD GetCallback(nsIQuotaUsageCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
  NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } \
  MOZ_MUST_USE NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsQuotaUsageRequest : public nsIQuotaUsageRequest
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIQUOTAUSAGEREQUEST

  nsQuotaUsageRequest();

private:
  ~nsQuotaUsageRequest();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsQuotaUsageRequest, nsIQuotaUsageRequest)

nsQuotaUsageRequest::nsQuotaUsageRequest()
{
  /* member initializers and constructor code */
}

nsQuotaUsageRequest::~nsQuotaUsageRequest()
{
  /* destructor code */
}

/* [must_use] readonly attribute unsigned long long usage; */
MOZ_MUST_USE NS_IMETHODIMP nsQuotaUsageRequest::GetUsage(uint64_t *aUsage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [must_use] readonly attribute unsigned long long fileUsage; */
MOZ_MUST_USE NS_IMETHODIMP nsQuotaUsageRequest::GetFileUsage(uint64_t *aFileUsage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [must_use] readonly attribute unsigned long long limit; */
MOZ_MUST_USE NS_IMETHODIMP nsQuotaUsageRequest::GetLimit(uint64_t *aLimit)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIQuotaUsageCallback callback; */
NS_IMETHODIMP nsQuotaUsageRequest::GetCallback(nsIQuotaUsageCallback * *aCallback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsQuotaUsageRequest::SetCallback(nsIQuotaUsageCallback *aCallback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [must_use] void cancel (); */
MOZ_MUST_USE NS_IMETHODIMP nsQuotaUsageRequest::Cancel()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIQuotaRequest */
#define NS_IQUOTAREQUEST_IID_STR "22890e3e-ff25-4372-9684-d901060e2f6c"

#define NS_IQUOTAREQUEST_IID \
  {0x22890e3e, 0xff25, 0x4372, \
    { 0x96, 0x84, 0xd9, 0x01, 0x06, 0x0e, 0x2f, 0x6c }}

class NS_NO_VTABLE nsIQuotaRequest : public nsIQuotaRequestBase {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAREQUEST_IID)

  /* attribute nsIQuotaCallback callback; */
  NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) = 0;
  NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaRequest, NS_IQUOTAREQUEST_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIQUOTAREQUEST \
  NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) override; \
  NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) 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_NSIQUOTAREQUEST \
  nsresult GetCallback(nsIQuotaCallback * *aCallback); \
  nsresult SetCallback(nsIQuotaCallback *aCallback); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIQUOTAREQUEST(_to) \
  NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) override { return _to GetCallback(aCallback); } \
  NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override { return _to SetCallback(aCallback); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIQUOTAREQUEST(_to) \
  NS_IMETHOD GetCallback(nsIQuotaCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
  NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsQuotaRequest : public nsIQuotaRequest
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIQUOTAREQUEST

  nsQuotaRequest();

private:
  ~nsQuotaRequest();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsQuotaRequest, nsIQuotaRequest)

nsQuotaRequest::nsQuotaRequest()
{
  /* member initializers and constructor code */
}

nsQuotaRequest::~nsQuotaRequest()
{
  /* destructor code */
}

/* attribute nsIQuotaCallback callback; */
NS_IMETHODIMP nsQuotaRequest::GetCallback(nsIQuotaCallback * *aCallback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsQuotaRequest::SetCallback(nsIQuotaCallback *aCallback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIQuotaRequests_h__ */