/usr/include/thunderbird-11.0.1/nsICookie.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/netwerk/cookie/nsICookie.idl
*/
#ifndef __gen_nsICookie_h__
#define __gen_nsICookie_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
typedef PRInt32 nsCookieStatus;
typedef PRInt32 nsCookiePolicy;
/* starting interface: nsICookie */
#define NS_ICOOKIE_IID_STR "e9fcb9a4-d376-458f-b720-e65e7df593bc"
#define NS_ICOOKIE_IID \
{0xe9fcb9a4, 0xd376, 0x458f, \
{ 0xb7, 0x20, 0xe6, 0x5e, 0x7d, 0xf5, 0x93, 0xbc }}
class NS_NO_VTABLE NS_SCRIPTABLE nsICookie : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIE_IID)
/* readonly attribute ACString name; */
NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) = 0;
/* readonly attribute ACString value; */
NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue) = 0;
/* readonly attribute boolean isDomain; */
NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain) = 0;
/* readonly attribute AUTF8String host; */
NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) = 0;
/* readonly attribute AUTF8String path; */
NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) = 0;
/* readonly attribute boolean isSecure; */
NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure) = 0;
/* readonly attribute PRUint64 expires; */
NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires) = 0;
enum {
STATUS_UNKNOWN = 0,
STATUS_ACCEPTED = 1,
STATUS_DOWNGRADED = 2,
STATUS_FLAGGED = 3,
STATUS_REJECTED = 4
};
/* readonly attribute nsCookieStatus status; */
NS_SCRIPTABLE 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; */
NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) = 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_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName); \
NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue); \
NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain); \
NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost); \
NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath); \
NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure); \
NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires); \
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus); \
NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOOKIE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue) { return _to GetValue(aValue); } \
NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain) { return _to GetIsDomain(aIsDomain); } \
NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \
NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) { return _to GetPath(aPath); } \
NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure) { return _to GetIsSecure(aIsSecure); } \
NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires) { return _to GetExpires(aExpires); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus) { return _to GetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) { return _to GetPolicy(aPolicy); }
/* 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_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDomain(aIsDomain); } \
NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSecure(aIsSecure); } \
NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpires(aExpires); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPolicy(aPolicy); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCookie : public nsICookie
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICOOKIE
nsCookie();
private:
~nsCookie();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsCookie, nsICookie)
nsCookie::nsCookie()
{
/* member initializers and constructor code */
}
nsCookie::~nsCookie()
{
/* destructor code */
}
/* readonly attribute ACString name; */
NS_IMETHODIMP nsCookie::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString value; */
NS_IMETHODIMP nsCookie::GetValue(nsACString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean isDomain; */
NS_IMETHODIMP nsCookie::GetIsDomain(bool *aIsDomain)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String host; */
NS_IMETHODIMP nsCookie::GetHost(nsACString & aHost)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String path; */
NS_IMETHODIMP nsCookie::GetPath(nsACString & aPath)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean isSecure; */
NS_IMETHODIMP nsCookie::GetIsSecure(bool *aIsSecure)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute PRUint64 expires; */
NS_IMETHODIMP nsCookie::GetExpires(PRUint64 *aExpires)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsCookieStatus status; */
NS_IMETHODIMP nsCookie::GetStatus(nsCookieStatus *aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsCookiePolicy policy; */
NS_IMETHODIMP nsCookie::GetPolicy(nsCookiePolicy *aPolicy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsICookie_h__ */
|