Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsICookie.idl"
8 /**
9 * Main cookie object interface for use by consumers:
10 * extends nsICookie, a frozen interface for external
11 * access of cookie objects
12 */
14 [scriptable, uuid(9468A7E6-37B3-43CE-A081-377BC12C5BB7)]
16 interface nsICookie2 : nsICookie
17 {
19 /**
20 * the origin key of the cookie.
21 */
22 readonly attribute ACString origin;
24 /**
25 * the host (possibly fully qualified) of the cookie,
26 * without a leading dot to represent if it is a
27 * domain cookie.
28 */
29 readonly attribute AUTF8String rawHost;
31 /**
32 * true if the cookie is a session cookie.
33 * note that expiry time will also be honored
34 * for session cookies (see below); thus, whichever is
35 * the more restrictive of the two will take effect.
36 */
37 readonly attribute boolean isSession;
39 /**
40 * the actual expiry time of the cookie, in seconds
41 * since midnight (00:00:00), January 1, 1970 UTC.
42 *
43 * this is distinct from nsICookie::expires, which
44 * has different and obsolete semantics.
45 */
46 readonly attribute int64_t expiry;
48 /**
49 * true if the cookie is an http only cookie
50 */
51 readonly attribute boolean isHttpOnly;
53 /**
54 * the creation time of the cookie, in microseconds
55 * since midnight (00:00:00), January 1, 1970 UTC.
56 */
57 readonly attribute int64_t creationTime;
59 /**
60 * the last time the cookie was accessed (i.e. created,
61 * modified, or read by the server), in microseconds
62 * since midnight (00:00:00), January 1, 1970 UTC.
63 *
64 * note that this time may be approximate.
65 */
66 readonly attribute int64_t lastAccessed;
68 };