netwerk/cookie/nsICookieManager.idl

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsISupports.idl"
michael@0 7
michael@0 8 interface nsISimpleEnumerator;
michael@0 9
michael@0 10 /**
michael@0 11 * An optional interface for accessing or removing the cookies
michael@0 12 * that are in the cookie list
michael@0 13 */
michael@0 14
michael@0 15 [scriptable, uuid(AAAB6710-0F2C-11d5-A53B-0010A401EB10)]
michael@0 16 interface nsICookieManager : nsISupports
michael@0 17 {
michael@0 18
michael@0 19 /**
michael@0 20 * Called to remove all cookies from the cookie list
michael@0 21 */
michael@0 22 void removeAll();
michael@0 23
michael@0 24 /**
michael@0 25 * Called to enumerate through each cookie in the cookie list.
michael@0 26 * The objects enumerated over are of type nsICookie
michael@0 27 */
michael@0 28 readonly attribute nsISimpleEnumerator enumerator;
michael@0 29
michael@0 30 /**
michael@0 31 * Called to remove an individual cookie from the cookie list, specified
michael@0 32 * by host, name, and path. If the cookie cannot be found, no exception
michael@0 33 * is thrown. Typically, the arguments to this method will be obtained
michael@0 34 * directly from the desired nsICookie object.
michael@0 35 *
michael@0 36 * @param aHost The host or domain for which the cookie was set. @see
michael@0 37 * nsICookieManager2::add for a description of acceptable host
michael@0 38 * strings. If the target cookie is a domain cookie, a leading
michael@0 39 * dot must be present.
michael@0 40 * @param aName The name specified in the cookie
michael@0 41 * @param aPath The path for which the cookie was set
michael@0 42 * @param aBlocked Indicates if cookies from this host should be permanently blocked
michael@0 43 *
michael@0 44 */
michael@0 45 void remove(in AUTF8String aHost,
michael@0 46 in ACString aName,
michael@0 47 in AUTF8String aPath,
michael@0 48 in boolean aBlocked);
michael@0 49 };

mercurial