1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsISupports.idl"
7 typedef long nsCookieAccess
;
10 * An interface to test for cookie permissions
12 [scriptable
, uuid(11ddd4ed
-8f5b
-40b3
-b2a0
-27c20ea1c88d
)]
13 interface nsICookiePermission
: nsISupports
16 * nsCookieAccess values
18 const nsCookieAccess ACCESS_DEFAULT
= 0;
19 const nsCookieAccess ACCESS_ALLOW
= 1;
20 const nsCookieAccess ACCESS_DENY
= 2;
23 * additional values for nsCookieAccess which may not match
24 * nsIPermissionManager. Keep 3-7 available to allow nsIPermissionManager to
25 * add values without colliding. ACCESS_SESSION is not directly returned by
26 * any methods on this interface.
28 const nsCookieAccess ACCESS_SESSION
= 8;
31 * Don't use values 9 and 10! They used to be ACCESS_ALLOW_FIRST_PARTY_ONLY
32 * and ACCESS_LIMIT_THIRD_PARTY, now removed, but maybe still stored in some
33 * ancient user profiles.