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

#ifndef __gen_nsICookieManager_h__
#define __gen_nsICookieManager_h__


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

#include "js/Value.h"

#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
namespace mozilla {
class OriginAttributes;
} // mozilla namespace
class nsISimpleEnumerator; /* forward declaration */

class nsICookie2; /* forward declaration */

class nsIFile; /* forward declaration */


/* starting interface:    nsIPrivateModeCallback */
#define NS_IPRIVATEMODECALLBACK_IID_STR "20709db8-8dad-4e45-b33e-6e7c761dfc5d"

#define NS_IPRIVATEMODECALLBACK_IID \
  {0x20709db8, 0x8dad, 0x4e45, \
    { 0xb3, 0x3e, 0x6e, 0x7c, 0x76, 0x1d, 0xfc, 0x5d }}

class NS_NO_VTABLE nsIPrivateModeCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRIVATEMODECALLBACK_IID)

  /* void callback (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Callback(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrivateModeCallback, NS_IPRIVATEMODECALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRIVATEMODECALLBACK \
  NS_IMETHOD Callback(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_NSIPRIVATEMODECALLBACK \
  nsresult Callback(void); 

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

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


/* starting interface:    nsICookieManager */
#define NS_ICOOKIEMANAGER_IID_STR "aaab6710-0f2c-11d5-a53b-0010a401eb10"

#define NS_ICOOKIEMANAGER_IID \
  {0xaaab6710, 0x0f2c, 0x11d5, \
    { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 }}

class NS_NO_VTABLE nsICookieManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEMANAGER_IID)

  /* void removeAll (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveAll(void) = 0;

  /* readonly attribute nsISimpleEnumerator enumerator; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEnumerator(nsISimpleEnumerator **aEnumerator) = 0;

  /* readonly attribute nsISimpleEnumerator sessionEnumerator; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator **aSessionEnumerator) = 0;

  /* [implicit_jscontext,optional_argc] void remove (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked, [optional] in jsval aOriginAttributes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Remove(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) = 0;

  /* [notxpcom] nsresult removeNative (in AUTF8String aHost, in ACString aName, in AUTF8String aPath, in boolean aBlocked, in OriginAttributesPtr aOriginAttributes); */
  NS_IMETHOD_(nsresult) RemoveNative(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, mozilla::OriginAttributes * aOriginAttributes) = 0;

  /* [implicit_jscontext,optional_argc] void add (in AUTF8String aHost, in AUTF8String aPath, in ACString aName, in ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in int64_t aExpiry, [optional] in jsval aOriginAttributes, [optional] in int32_t aSameSite); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Add(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, JS::HandleValue aOriginAttributes, int32_t aSameSite, JSContext* cx, uint8_t _argc) = 0;

  /* [notxpcom] nsresult addNative (in AUTF8String aHost, in AUTF8String aPath, in ACString aName, in ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in int64_t aExpiry, in OriginAttributesPtr aOriginAttributes, in int32_t aSameSite); */
  NS_IMETHOD_(nsresult) AddNative(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, mozilla::OriginAttributes * aOriginAttributes, int32_t aSameSite) = 0;

  /* [implicit_jscontext,optional_argc] boolean cookieExists (in nsICookie2 aCookie, [optional] in jsval aOriginAttributes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CookieExists(nsICookie2 *aCookie, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) = 0;

  /* [notxpcom] nsresult cookieExistsNative (in nsICookie2 aCookie, in OriginAttributesPtr aOriginAttributes, out boolean aExists); */
  NS_IMETHOD_(nsresult) CookieExistsNative(nsICookie2 *aCookie, mozilla::OriginAttributes * aOriginAttributes, bool *aExists) = 0;

  /* unsigned long countCookiesFromHost (in AUTF8String aHost); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CountCookiesFromHost(const nsACString& aHost, uint32_t *_retval) = 0;

  /* [implicit_jscontext,optional_argc] nsISimpleEnumerator getCookiesFromHost (in AUTF8String aHost, [optional] in jsval aOriginAttributes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCookiesFromHost(const nsACString& aHost, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, nsISimpleEnumerator **_retval) = 0;

  /* void importCookies (in nsIFile aCookieFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ImportCookies(nsIFile *aCookieFile) = 0;

  /* nsISimpleEnumerator getCookiesWithOriginAttributes (in DOMString aPattern, [optional] in AUTF8String aHost); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost, nsISimpleEnumerator **_retval) = 0;

  /* void removeCookiesWithOriginAttributes (in DOMString aPattern, [optional] in AUTF8String aHost); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICookieManager, NS_ICOOKIEMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOOKIEMANAGER \
  NS_IMETHOD RemoveAll(void) override; \
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator **aEnumerator) override; \
  NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator **aSessionEnumerator) override; \
  NS_IMETHOD Remove(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override; \
  NS_IMETHOD_(nsresult) RemoveNative(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, mozilla::OriginAttributes * aOriginAttributes) override; \
  NS_IMETHOD Add(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, JS::HandleValue aOriginAttributes, int32_t aSameSite, JSContext* cx, uint8_t _argc) override; \
  NS_IMETHOD_(nsresult) AddNative(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, mozilla::OriginAttributes * aOriginAttributes, int32_t aSameSite) override; \
  NS_IMETHOD CookieExists(nsICookie2 *aCookie, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) override; \
  NS_IMETHOD_(nsresult) CookieExistsNative(nsICookie2 *aCookie, mozilla::OriginAttributes * aOriginAttributes, bool *aExists) override; \
  NS_IMETHOD CountCookiesFromHost(const nsACString& aHost, uint32_t *_retval) override; \
  NS_IMETHOD GetCookiesFromHost(const nsACString& aHost, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD ImportCookies(nsIFile *aCookieFile) override; \
  NS_IMETHOD GetCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost, nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD RemoveCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost) 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_NSICOOKIEMANAGER \
  nsresult RemoveAll(void); \
  nsresult GetEnumerator(nsISimpleEnumerator **aEnumerator); \
  nsresult GetSessionEnumerator(nsISimpleEnumerator **aSessionEnumerator); \
  nsresult Remove(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc); \
  nsresult_(nsresult) RemoveNative(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, mozilla::OriginAttributes * aOriginAttributes); \
  nsresult Add(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, JS::HandleValue aOriginAttributes, int32_t aSameSite, JSContext* cx, uint8_t _argc); \
  nsresult_(nsresult) AddNative(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, mozilla::OriginAttributes * aOriginAttributes, int32_t aSameSite); \
  nsresult CookieExists(nsICookie2 *aCookie, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval); \
  nsresult_(nsresult) CookieExistsNative(nsICookie2 *aCookie, mozilla::OriginAttributes * aOriginAttributes, bool *aExists); \
  nsresult CountCookiesFromHost(const nsACString& aHost, uint32_t *_retval); \
  nsresult GetCookiesFromHost(const nsACString& aHost, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, nsISimpleEnumerator **_retval); \
  nsresult ImportCookies(nsIFile *aCookieFile); \
  nsresult GetCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost, nsISimpleEnumerator **_retval); \
  nsresult RemoveCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOOKIEMANAGER(_to) \
  NS_IMETHOD RemoveAll(void) override { return _to RemoveAll(); } \
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator **aEnumerator) override { return _to GetEnumerator(aEnumerator); } \
  NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator **aSessionEnumerator) override { return _to GetSessionEnumerator(aSessionEnumerator); } \
  NS_IMETHOD Remove(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override { return _to Remove(aHost, aName, aPath, aBlocked, aOriginAttributes, cx, _argc); } \
  NS_IMETHOD_(nsresult) RemoveNative(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, mozilla::OriginAttributes * aOriginAttributes) override { return _to RemoveNative(aHost, aName, aPath, aBlocked, aOriginAttributes); } \
  NS_IMETHOD Add(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, JS::HandleValue aOriginAttributes, int32_t aSameSite, JSContext* cx, uint8_t _argc) override { return _to Add(aHost, aPath, aName, aValue, aIsSecure, aIsHttpOnly, aIsSession, aExpiry, aOriginAttributes, aSameSite, cx, _argc); } \
  NS_IMETHOD_(nsresult) AddNative(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, mozilla::OriginAttributes * aOriginAttributes, int32_t aSameSite) override { return _to AddNative(aHost, aPath, aName, aValue, aIsSecure, aIsHttpOnly, aIsSession, aExpiry, aOriginAttributes, aSameSite); } \
  NS_IMETHOD CookieExists(nsICookie2 *aCookie, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) override { return _to CookieExists(aCookie, aOriginAttributes, cx, _argc, _retval); } \
  NS_IMETHOD_(nsresult) CookieExistsNative(nsICookie2 *aCookie, mozilla::OriginAttributes * aOriginAttributes, bool *aExists) override { return _to CookieExistsNative(aCookie, aOriginAttributes, aExists); } \
  NS_IMETHOD CountCookiesFromHost(const nsACString& aHost, uint32_t *_retval) override { return _to CountCookiesFromHost(aHost, _retval); } \
  NS_IMETHOD GetCookiesFromHost(const nsACString& aHost, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, nsISimpleEnumerator **_retval) override { return _to GetCookiesFromHost(aHost, aOriginAttributes, cx, _argc, _retval); } \
  NS_IMETHOD ImportCookies(nsIFile *aCookieFile) override { return _to ImportCookies(aCookieFile); } \
  NS_IMETHOD GetCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost, nsISimpleEnumerator **_retval) override { return _to GetCookiesWithOriginAttributes(aPattern, aHost, _retval); } \
  NS_IMETHOD RemoveCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost) override { return _to RemoveCookiesWithOriginAttributes(aPattern, aHost); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOOKIEMANAGER(_to) \
  NS_IMETHOD RemoveAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAll(); } \
  NS_IMETHOD GetEnumerator(nsISimpleEnumerator **aEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumerator(aEnumerator); } \
  NS_IMETHOD GetSessionEnumerator(nsISimpleEnumerator **aSessionEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionEnumerator(aSessionEnumerator); } \
  NS_IMETHOD Remove(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aHost, aName, aPath, aBlocked, aOriginAttributes, cx, _argc); } \
  NS_IMETHOD_(nsresult) RemoveNative(const nsACString& aHost, const nsACString& aName, const nsACString& aPath, bool aBlocked, mozilla::OriginAttributes * aOriginAttributes) override; \
  NS_IMETHOD Add(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, JS::HandleValue aOriginAttributes, int32_t aSameSite, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(aHost, aPath, aName, aValue, aIsSecure, aIsHttpOnly, aIsSession, aExpiry, aOriginAttributes, aSameSite, cx, _argc); } \
  NS_IMETHOD_(nsresult) AddNative(const nsACString& aHost, const nsACString& aPath, const nsACString& aName, const nsACString& aValue, bool aIsSecure, bool aIsHttpOnly, bool aIsSession, int64_t aExpiry, mozilla::OriginAttributes * aOriginAttributes, int32_t aSameSite) override; \
  NS_IMETHOD CookieExists(nsICookie2 *aCookie, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CookieExists(aCookie, aOriginAttributes, cx, _argc, _retval); } \
  NS_IMETHOD_(nsresult) CookieExistsNative(nsICookie2 *aCookie, mozilla::OriginAttributes * aOriginAttributes, bool *aExists) override; \
  NS_IMETHOD CountCookiesFromHost(const nsACString& aHost, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CountCookiesFromHost(aHost, _retval); } \
  NS_IMETHOD GetCookiesFromHost(const nsACString& aHost, JS::HandleValue aOriginAttributes, JSContext* cx, uint8_t _argc, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookiesFromHost(aHost, aOriginAttributes, cx, _argc, _retval); } \
  NS_IMETHOD ImportCookies(nsIFile *aCookieFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportCookies(aCookieFile); } \
  NS_IMETHOD GetCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookiesWithOriginAttributes(aPattern, aHost, _retval); } \
  NS_IMETHOD RemoveCookiesWithOriginAttributes(const nsAString& aPattern, const nsACString& aHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCookiesWithOriginAttributes(aPattern, aHost); } 


#endif /* __gen_nsICookieManager_h__ */