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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/netwerk/cache2/nsICacheStorageService.idl
 */

#ifndef __gen_nsICacheStorageService_h__
#define __gen_nsICacheStorageService_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
class nsICacheStorage; /* forward declaration */

class nsILoadContextInfo; /* forward declaration */

class nsIApplicationCache; /* forward declaration */

class nsIEventTarget; /* forward declaration */

class nsICacheStorageConsumptionObserver; /* forward declaration */

class nsICacheStorageVisitor; /* forward declaration */

class nsIPrincipal; /* forward declaration */


/* starting interface:    nsICacheStorageService */
#define NS_ICACHESTORAGESERVICE_IID_STR "ae29c44b-fbc3-4552-afaf-0a157ce771e7"

#define NS_ICACHESTORAGESERVICE_IID \
  {0xae29c44b, 0xfbc3, 0x4552, \
    { 0xaf, 0xaf, 0x0a, 0x15, 0x7c, 0xe7, 0x71, 0xe7 }}

class NS_NO_VTABLE nsICacheStorageService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHESTORAGESERVICE_IID)

  /* nsICacheStorage memoryCacheStorage (in nsILoadContextInfo aLoadContextInfo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MemoryCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) = 0;

  /* nsICacheStorage diskCacheStorage (in nsILoadContextInfo aLoadContextInfo, in bool aLookupAppCache); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DiskCacheStorage(nsILoadContextInfo *aLoadContextInfo, bool aLookupAppCache, nsICacheStorage **_retval) = 0;

  /* nsICacheStorage pinningCacheStorage (in nsILoadContextInfo aLoadContextInfo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PinningCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) = 0;

  /* nsICacheStorage appCacheStorage (in nsILoadContextInfo aLoadContextInfo, in nsIApplicationCache aApplicationCache); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AppCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache *aApplicationCache, nsICacheStorage **_retval) = 0;

  /* nsICacheStorage synthesizedCacheStorage (in nsILoadContextInfo aLoadContextInfo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SynthesizedCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) = 0;

  /* void clearOrigin (in nsIPrincipal aPrincipal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearOrigin(nsIPrincipal *aPrincipal) = 0;

  /* void clear (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Clear(void) = 0;

  enum {
    PURGE_DISK_DATA_ONLY = 1U,
    PURGE_DISK_ALL = 2U,
    PURGE_EVERYTHING = 3U
  };

  /* void purgeFromMemory (in uint32_t aWhat); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PurgeFromMemory(uint32_t aWhat) = 0;

  /* readonly attribute nsIEventTarget ioTarget; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIoTarget(nsIEventTarget **aIoTarget) = 0;

  /* void asyncGetDiskConsumption (in nsICacheStorageConsumptionObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver *aObserver) = 0;

  /* void asyncVisitAllStorages (in nsICacheStorageVisitor aVisitor, in boolean aVisitEntries); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncVisitAllStorages(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheStorageService, NS_ICACHESTORAGESERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICACHESTORAGESERVICE \
  NS_IMETHOD MemoryCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override; \
  NS_IMETHOD DiskCacheStorage(nsILoadContextInfo *aLoadContextInfo, bool aLookupAppCache, nsICacheStorage **_retval) override; \
  NS_IMETHOD PinningCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override; \
  NS_IMETHOD AppCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache *aApplicationCache, nsICacheStorage **_retval) override; \
  NS_IMETHOD SynthesizedCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override; \
  NS_IMETHOD ClearOrigin(nsIPrincipal *aPrincipal) override; \
  NS_IMETHOD Clear(void) override; \
  NS_IMETHOD PurgeFromMemory(uint32_t aWhat) override; \
  NS_IMETHOD GetIoTarget(nsIEventTarget **aIoTarget) override; \
  NS_IMETHOD AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver *aObserver) override; \
  NS_IMETHOD AsyncVisitAllStorages(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) 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_NSICACHESTORAGESERVICE \
  nsresult MemoryCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval); \
  nsresult DiskCacheStorage(nsILoadContextInfo *aLoadContextInfo, bool aLookupAppCache, nsICacheStorage **_retval); \
  nsresult PinningCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval); \
  nsresult AppCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache *aApplicationCache, nsICacheStorage **_retval); \
  nsresult SynthesizedCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval); \
  nsresult ClearOrigin(nsIPrincipal *aPrincipal); \
  nsresult Clear(void); \
  nsresult PurgeFromMemory(uint32_t aWhat); \
  nsresult GetIoTarget(nsIEventTarget **aIoTarget); \
  nsresult AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver *aObserver); \
  nsresult AsyncVisitAllStorages(nsICacheStorageVisitor *aVisitor, bool aVisitEntries); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICACHESTORAGESERVICE(_to) \
  NS_IMETHOD MemoryCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override { return _to MemoryCacheStorage(aLoadContextInfo, _retval); } \
  NS_IMETHOD DiskCacheStorage(nsILoadContextInfo *aLoadContextInfo, bool aLookupAppCache, nsICacheStorage **_retval) override { return _to DiskCacheStorage(aLoadContextInfo, aLookupAppCache, _retval); } \
  NS_IMETHOD PinningCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override { return _to PinningCacheStorage(aLoadContextInfo, _retval); } \
  NS_IMETHOD AppCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache *aApplicationCache, nsICacheStorage **_retval) override { return _to AppCacheStorage(aLoadContextInfo, aApplicationCache, _retval); } \
  NS_IMETHOD SynthesizedCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override { return _to SynthesizedCacheStorage(aLoadContextInfo, _retval); } \
  NS_IMETHOD ClearOrigin(nsIPrincipal *aPrincipal) override { return _to ClearOrigin(aPrincipal); } \
  NS_IMETHOD Clear(void) override { return _to Clear(); } \
  NS_IMETHOD PurgeFromMemory(uint32_t aWhat) override { return _to PurgeFromMemory(aWhat); } \
  NS_IMETHOD GetIoTarget(nsIEventTarget **aIoTarget) override { return _to GetIoTarget(aIoTarget); } \
  NS_IMETHOD AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver *aObserver) override { return _to AsyncGetDiskConsumption(aObserver); } \
  NS_IMETHOD AsyncVisitAllStorages(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) override { return _to AsyncVisitAllStorages(aVisitor, aVisitEntries); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICACHESTORAGESERVICE(_to) \
  NS_IMETHOD MemoryCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MemoryCacheStorage(aLoadContextInfo, _retval); } \
  NS_IMETHOD DiskCacheStorage(nsILoadContextInfo *aLoadContextInfo, bool aLookupAppCache, nsICacheStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DiskCacheStorage(aLoadContextInfo, aLookupAppCache, _retval); } \
  NS_IMETHOD PinningCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PinningCacheStorage(aLoadContextInfo, _retval); } \
  NS_IMETHOD AppCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache *aApplicationCache, nsICacheStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppCacheStorage(aLoadContextInfo, aApplicationCache, _retval); } \
  NS_IMETHOD SynthesizedCacheStorage(nsILoadContextInfo *aLoadContextInfo, nsICacheStorage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SynthesizedCacheStorage(aLoadContextInfo, _retval); } \
  NS_IMETHOD ClearOrigin(nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearOrigin(aPrincipal); } \
  NS_IMETHOD Clear(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
  NS_IMETHOD PurgeFromMemory(uint32_t aWhat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgeFromMemory(aWhat); } \
  NS_IMETHOD GetIoTarget(nsIEventTarget **aIoTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIoTarget(aIoTarget); } \
  NS_IMETHOD AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncGetDiskConsumption(aObserver); } \
  NS_IMETHOD AsyncVisitAllStorages(nsICacheStorageVisitor *aVisitor, bool aVisitEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncVisitAllStorages(aVisitor, aVisitEntries); } 


/* starting interface:    nsICacheStorageConsumptionObserver */
#define NS_ICACHESTORAGECONSUMPTIONOBSERVER_IID_STR "7728ab5b-4c01-4483-a606-32bf5b8136cb"

#define NS_ICACHESTORAGECONSUMPTIONOBSERVER_IID \
  {0x7728ab5b, 0x4c01, 0x4483, \
    { 0xa6, 0x06, 0x32, 0xbf, 0x5b, 0x81, 0x36, 0xcb }}

class NS_NO_VTABLE nsICacheStorageConsumptionObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHESTORAGECONSUMPTIONOBSERVER_IID)

  /* void onNetworkCacheDiskConsumption (in int64_t aDiskSize); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnNetworkCacheDiskConsumption(int64_t aDiskSize) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheStorageConsumptionObserver, NS_ICACHESTORAGECONSUMPTIONOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICACHESTORAGECONSUMPTIONOBSERVER \
  NS_IMETHOD OnNetworkCacheDiskConsumption(int64_t aDiskSize) 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_NSICACHESTORAGECONSUMPTIONOBSERVER \
  nsresult OnNetworkCacheDiskConsumption(int64_t aDiskSize); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICACHESTORAGECONSUMPTIONOBSERVER(_to) \
  NS_IMETHOD OnNetworkCacheDiskConsumption(int64_t aDiskSize) override { return _to OnNetworkCacheDiskConsumption(aDiskSize); } 

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


#endif /* __gen_nsICacheStorageService_h__ */