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

#ifndef __gen_nsIApplicationCache_h__
#define __gen_nsIApplicationCache_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 nsIArray; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIURI; /* forward declaration */


/* starting interface:    nsIApplicationCacheNamespace */
#define NS_IAPPLICATIONCACHENAMESPACE_IID_STR "96e4c264-2065-4ce9-93bb-43734c62c4eb"

#define NS_IAPPLICATIONCACHENAMESPACE_IID \
  {0x96e4c264, 0x2065, 0x4ce9, \
    { 0x93, 0xbb, 0x43, 0x73, 0x4c, 0x62, 0xc4, 0xeb }}

class NS_NO_VTABLE nsIApplicationCacheNamespace : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHENAMESPACE_IID)

  enum {
    NAMESPACE_BYPASS = 1U,
    NAMESPACE_FALLBACK = 2U,
    NAMESPACE_OPPORTUNISTIC = 4U
  };

  /* void init (in unsigned long itemType, in ACString namespaceSpec, in ACString data); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(uint32_t itemType, const nsACString& namespaceSpec, const nsACString& data) = 0;

  /* readonly attribute unsigned long itemType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemType(uint32_t *aItemType) = 0;

  /* readonly attribute ACString namespaceSpec; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNamespaceSpec(nsACString& aNamespaceSpec) = 0;

  /* readonly attribute ACString data; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetData(nsACString& aData) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCacheNamespace, NS_IAPPLICATIONCACHENAMESPACE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAPPLICATIONCACHENAMESPACE \
  NS_IMETHOD Init(uint32_t itemType, const nsACString& namespaceSpec, const nsACString& data) override; \
  NS_IMETHOD GetItemType(uint32_t *aItemType) override; \
  NS_IMETHOD GetNamespaceSpec(nsACString& aNamespaceSpec) override; \
  NS_IMETHOD GetData(nsACString& aData) 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_NSIAPPLICATIONCACHENAMESPACE \
  nsresult Init(uint32_t itemType, const nsACString& namespaceSpec, const nsACString& data); \
  nsresult GetItemType(uint32_t *aItemType); \
  nsresult GetNamespaceSpec(nsACString& aNamespaceSpec); \
  nsresult GetData(nsACString& aData); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAPPLICATIONCACHENAMESPACE(_to) \
  NS_IMETHOD Init(uint32_t itemType, const nsACString& namespaceSpec, const nsACString& data) override { return _to Init(itemType, namespaceSpec, data); } \
  NS_IMETHOD GetItemType(uint32_t *aItemType) override { return _to GetItemType(aItemType); } \
  NS_IMETHOD GetNamespaceSpec(nsACString& aNamespaceSpec) override { return _to GetNamespaceSpec(aNamespaceSpec); } \
  NS_IMETHOD GetData(nsACString& aData) override { return _to GetData(aData); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAPPLICATIONCACHENAMESPACE(_to) \
  NS_IMETHOD Init(uint32_t itemType, const nsACString& namespaceSpec, const nsACString& data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(itemType, namespaceSpec, data); } \
  NS_IMETHOD GetItemType(uint32_t *aItemType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemType(aItemType); } \
  NS_IMETHOD GetNamespaceSpec(nsACString& aNamespaceSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamespaceSpec(aNamespaceSpec); } \
  NS_IMETHOD GetData(nsACString& aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } 


/* starting interface:    nsIApplicationCache */
#define NS_IAPPLICATIONCACHE_IID_STR "06568dae-c374-4383-a122-0cc96c7177f2"

#define NS_IAPPLICATIONCACHE_IID \
  {0x06568dae, 0xc374, 0x4383, \
    { 0xa1, 0x22, 0x0c, 0xc9, 0x6c, 0x71, 0x77, 0xf2 }}

class NS_NO_VTABLE nsIApplicationCache : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHE_IID)

  /* void initAsHandle (in ACString groupId, in ACString clientId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitAsHandle(const nsACString& groupId, const nsACString& clientId) = 0;

  enum {
    ITEM_MANIFEST = 1U,
    ITEM_EXPLICIT = 2U,
    ITEM_IMPLICIT = 4U,
    ITEM_DYNAMIC = 8U,
    ITEM_FOREIGN = 16U,
    ITEM_FALLBACK = 32U,
    ITEM_OPPORTUNISTIC = 64U
  };

  /* readonly attribute nsIURI manifestURI; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetManifestURI(nsIURI **aManifestURI) = 0;

  /* readonly attribute ACString groupID; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGroupID(nsACString& aGroupID) = 0;

  /* readonly attribute ACString clientID; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetClientID(nsACString& aClientID) = 0;

  /* readonly attribute boolean active; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActive(bool *aActive) = 0;

  /* readonly attribute unsigned long usage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUsage(uint32_t *aUsage) = 0;

  /* void activate (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Activate(void) = 0;

  /* void discard (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Discard(void) = 0;

  /* void markEntry (in ACString key, in unsigned long typeBits); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MarkEntry(const nsACString& key, uint32_t typeBits) = 0;

  /* void unmarkEntry (in ACString key, in unsigned long typeBits); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnmarkEntry(const nsACString& key, uint32_t typeBits) = 0;

  /* unsigned long getTypes (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTypes(const nsACString& key, uint32_t *_retval) = 0;

  /* void gatherEntries (in uint32_t typeBits, out unsigned long count, [array, size_is (count)] out string keys); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) = 0;

  /* void addNamespaces (in nsIArray namespaces); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddNamespaces(nsIArray *namespaces) = 0;

  /* nsIApplicationCacheNamespace getMatchingNamespace (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMatchingNamespace(const nsACString& key, nsIApplicationCacheNamespace **_retval) = 0;

  /* readonly attribute nsIFile profileDirectory; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProfileDirectory(nsIFile **aProfileDirectory) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCache, NS_IAPPLICATIONCACHE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAPPLICATIONCACHE \
  NS_IMETHOD InitAsHandle(const nsACString& groupId, const nsACString& clientId) override; \
  NS_IMETHOD GetManifestURI(nsIURI **aManifestURI) override; \
  NS_IMETHOD GetGroupID(nsACString& aGroupID) override; \
  NS_IMETHOD GetClientID(nsACString& aClientID) override; \
  NS_IMETHOD GetActive(bool *aActive) override; \
  NS_IMETHOD GetUsage(uint32_t *aUsage) override; \
  NS_IMETHOD Activate(void) override; \
  NS_IMETHOD Discard(void) override; \
  NS_IMETHOD MarkEntry(const nsACString& key, uint32_t typeBits) override; \
  NS_IMETHOD UnmarkEntry(const nsACString& key, uint32_t typeBits) override; \
  NS_IMETHOD GetTypes(const nsACString& key, uint32_t *_retval) override; \
  NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) override; \
  NS_IMETHOD AddNamespaces(nsIArray *namespaces) override; \
  NS_IMETHOD GetMatchingNamespace(const nsACString& key, nsIApplicationCacheNamespace **_retval) override; \
  NS_IMETHOD GetProfileDirectory(nsIFile **aProfileDirectory) 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_NSIAPPLICATIONCACHE \
  nsresult InitAsHandle(const nsACString& groupId, const nsACString& clientId); \
  nsresult GetManifestURI(nsIURI **aManifestURI); \
  nsresult GetGroupID(nsACString& aGroupID); \
  nsresult GetClientID(nsACString& aClientID); \
  nsresult GetActive(bool *aActive); \
  nsresult GetUsage(uint32_t *aUsage); \
  nsresult Activate(void); \
  nsresult Discard(void); \
  nsresult MarkEntry(const nsACString& key, uint32_t typeBits); \
  nsresult UnmarkEntry(const nsACString& key, uint32_t typeBits); \
  nsresult GetTypes(const nsACString& key, uint32_t *_retval); \
  nsresult GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys); \
  nsresult AddNamespaces(nsIArray *namespaces); \
  nsresult GetMatchingNamespace(const nsACString& key, nsIApplicationCacheNamespace **_retval); \
  nsresult GetProfileDirectory(nsIFile **aProfileDirectory); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAPPLICATIONCACHE(_to) \
  NS_IMETHOD InitAsHandle(const nsACString& groupId, const nsACString& clientId) override { return _to InitAsHandle(groupId, clientId); } \
  NS_IMETHOD GetManifestURI(nsIURI **aManifestURI) override { return _to GetManifestURI(aManifestURI); } \
  NS_IMETHOD GetGroupID(nsACString& aGroupID) override { return _to GetGroupID(aGroupID); } \
  NS_IMETHOD GetClientID(nsACString& aClientID) override { return _to GetClientID(aClientID); } \
  NS_IMETHOD GetActive(bool *aActive) override { return _to GetActive(aActive); } \
  NS_IMETHOD GetUsage(uint32_t *aUsage) override { return _to GetUsage(aUsage); } \
  NS_IMETHOD Activate(void) override { return _to Activate(); } \
  NS_IMETHOD Discard(void) override { return _to Discard(); } \
  NS_IMETHOD MarkEntry(const nsACString& key, uint32_t typeBits) override { return _to MarkEntry(key, typeBits); } \
  NS_IMETHOD UnmarkEntry(const nsACString& key, uint32_t typeBits) override { return _to UnmarkEntry(key, typeBits); } \
  NS_IMETHOD GetTypes(const nsACString& key, uint32_t *_retval) override { return _to GetTypes(key, _retval); } \
  NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) override { return _to GatherEntries(typeBits, count, keys); } \
  NS_IMETHOD AddNamespaces(nsIArray *namespaces) override { return _to AddNamespaces(namespaces); } \
  NS_IMETHOD GetMatchingNamespace(const nsACString& key, nsIApplicationCacheNamespace **_retval) override { return _to GetMatchingNamespace(key, _retval); } \
  NS_IMETHOD GetProfileDirectory(nsIFile **aProfileDirectory) override { return _to GetProfileDirectory(aProfileDirectory); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAPPLICATIONCACHE(_to) \
  NS_IMETHOD InitAsHandle(const nsACString& groupId, const nsACString& clientId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitAsHandle(groupId, clientId); } \
  NS_IMETHOD GetManifestURI(nsIURI **aManifestURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManifestURI(aManifestURI); } \
  NS_IMETHOD GetGroupID(nsACString& aGroupID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupID(aGroupID); } \
  NS_IMETHOD GetClientID(nsACString& aClientID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientID(aClientID); } \
  NS_IMETHOD GetActive(bool *aActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActive(aActive); } \
  NS_IMETHOD GetUsage(uint32_t *aUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aUsage); } \
  NS_IMETHOD Activate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Activate(); } \
  NS_IMETHOD Discard(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Discard(); } \
  NS_IMETHOD MarkEntry(const nsACString& key, uint32_t typeBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkEntry(key, typeBits); } \
  NS_IMETHOD UnmarkEntry(const nsACString& key, uint32_t typeBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnmarkEntry(key, typeBits); } \
  NS_IMETHOD GetTypes(const nsACString& key, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypes(key, _retval); } \
  NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GatherEntries(typeBits, count, keys); } \
  NS_IMETHOD AddNamespaces(nsIArray *namespaces) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNamespaces(namespaces); } \
  NS_IMETHOD GetMatchingNamespace(const nsACString& key, nsIApplicationCacheNamespace **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchingNamespace(key, _retval); } \
  NS_IMETHOD GetProfileDirectory(nsIFile **aProfileDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileDirectory(aProfileDirectory); } 


#endif /* __gen_nsIApplicationCache_h__ */