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

#ifndef __gen_nsICookie_h__
#define __gen_nsICookie_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
typedef int32_t  nsCookieStatus;

typedef int32_t  nsCookiePolicy;


/* starting interface:    nsICookie */
#define NS_ICOOKIE_IID_STR "adf0db5e-211e-45a3-be14-4486ac430a58"

#define NS_ICOOKIE_IID \
  {0xadf0db5e, 0x211e, 0x45a3, \
    { 0xbe, 0x14, 0x44, 0x86, 0xac, 0x43, 0x0a, 0x58 }}

class NS_NO_VTABLE nsICookie : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIE_IID)

  /* readonly attribute ACString name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0;

  /* readonly attribute AUTF8String value; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValue(nsACString& aValue) = 0;

  /* readonly attribute boolean isDomain; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsDomain(bool *aIsDomain) = 0;

  /* readonly attribute AUTF8String host; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHost(nsACString& aHost) = 0;

  /* readonly attribute AUTF8String path; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPath(nsACString& aPath) = 0;

  /* readonly attribute boolean isSecure; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsSecure(bool *aIsSecure) = 0;

  /* readonly attribute uint64_t expires; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetExpires(uint64_t *aExpires) = 0;

  enum {
    STATUS_UNKNOWN = 0,
    STATUS_ACCEPTED = 1,
    STATUS_DOWNGRADED = 2,
    STATUS_FLAGGED = 3,
    STATUS_REJECTED = 4
  };

  /* readonly attribute nsCookieStatus status; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatus(nsCookieStatus *aStatus) = 0;

  enum {
    POLICY_UNKNOWN = 0,
    POLICY_NONE = 1,
    POLICY_NO_CONSENT = 2,
    POLICY_IMPLICIT_CONSENT = 3,
    POLICY_EXPLICIT_CONSENT = 4,
    POLICY_NO_II = 5
  };

  /* readonly attribute nsCookiePolicy policy; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) = 0;

  /* [implicit_jscontext] readonly attribute jsval originAttributes; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICookie, NS_ICOOKIE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOOKIE \
  NS_IMETHOD GetName(nsACString& aName) override; \
  NS_IMETHOD GetValue(nsACString& aValue) override; \
  NS_IMETHOD GetIsDomain(bool *aIsDomain) override; \
  NS_IMETHOD GetHost(nsACString& aHost) override; \
  NS_IMETHOD GetPath(nsACString& aPath) override; \
  NS_IMETHOD GetIsSecure(bool *aIsSecure) override; \
  NS_IMETHOD GetExpires(uint64_t *aExpires) override; \
  NS_IMETHOD GetStatus(nsCookieStatus *aStatus) override; \
  NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) override; \
  NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) 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_NSICOOKIE \
  nsresult GetName(nsACString& aName); \
  nsresult GetValue(nsACString& aValue); \
  nsresult GetIsDomain(bool *aIsDomain); \
  nsresult GetHost(nsACString& aHost); \
  nsresult GetPath(nsACString& aPath); \
  nsresult GetIsSecure(bool *aIsSecure); \
  nsresult GetExpires(uint64_t *aExpires); \
  nsresult GetStatus(nsCookieStatus *aStatus); \
  nsresult GetPolicy(nsCookiePolicy *aPolicy); \
  nsresult GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOOKIE(_to) \
  NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetValue(nsACString& aValue) override { return _to GetValue(aValue); } \
  NS_IMETHOD GetIsDomain(bool *aIsDomain) override { return _to GetIsDomain(aIsDomain); } \
  NS_IMETHOD GetHost(nsACString& aHost) override { return _to GetHost(aHost); } \
  NS_IMETHOD GetPath(nsACString& aPath) override { return _to GetPath(aPath); } \
  NS_IMETHOD GetIsSecure(bool *aIsSecure) override { return _to GetIsSecure(aIsSecure); } \
  NS_IMETHOD GetExpires(uint64_t *aExpires) override { return _to GetExpires(aExpires); } \
  NS_IMETHOD GetStatus(nsCookieStatus *aStatus) override { return _to GetStatus(aStatus); } \
  NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) override { return _to GetPolicy(aPolicy); } \
  NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return _to GetOriginAttributes(cx, aOriginAttributes); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOOKIE(_to) \
  NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetValue(nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_IMETHOD GetIsDomain(bool *aIsDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDomain(aIsDomain); } \
  NS_IMETHOD GetHost(nsACString& aHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
  NS_IMETHOD GetPath(nsACString& aPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
  NS_IMETHOD GetIsSecure(bool *aIsSecure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSecure(aIsSecure); } \
  NS_IMETHOD GetExpires(uint64_t *aExpires) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpires(aExpires); } \
  NS_IMETHOD GetStatus(nsCookieStatus *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
  NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPolicy(aPolicy); } \
  NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginAttributes(cx, aOriginAttributes); } 


#endif /* __gen_nsICookie_h__ */