netwerk/cookie/nsICookie2.idl

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
child 4
fc2d59ddac77
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

     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(05c420e5-03d0-4c7b-a605-df7ebe5ca326)]
    16 interface nsICookie2 : nsICookie
    17 {
    19     /**
    20      * the host (possibly fully qualified) of the cookie,
    21      * without a leading dot to represent if it is a
    22      * domain cookie.
    23      */
    24     readonly attribute AUTF8String rawHost;
    26     /**
    27      * true if the cookie is a session cookie.
    28      * note that expiry time will also be honored
    29      * for session cookies (see below); thus, whichever is
    30      * the more restrictive of the two will take effect.
    31      */
    32     readonly attribute boolean isSession;
    34     /**
    35      * the actual expiry time of the cookie, in seconds
    36      * since midnight (00:00:00), January 1, 1970 UTC.
    37      *
    38      * this is distinct from nsICookie::expires, which
    39      * has different and obsolete semantics.
    40      */
    41     readonly attribute int64_t expiry;
    43     /**
    44      * true if the cookie is an http only cookie
    45      */
    46     readonly attribute boolean isHttpOnly;
    48     /**
    49      * the creation time of the cookie, in microseconds
    50      * since midnight (00:00:00), January 1, 1970 UTC.
    51      */
    52     readonly attribute int64_t creationTime;
    54     /**
    55      * the last time the cookie was accessed (i.e. created,
    56      * modified, or read by the server), in microseconds
    57      * since midnight (00:00:00), January 1, 1970 UTC.
    58      *
    59      * note that this time may be approximate.
    60      */
    61     readonly attribute int64_t lastAccessed;
    63 };

mercurial