xpcom/ds/nsISimpleEnumerator.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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 /**
michael@0 9 * Used to enumerate over elements defined by its implementor.
michael@0 10 * Although hasMoreElements() can be called independently of getNext(),
michael@0 11 * getNext() must be pre-ceeded by a call to hasMoreElements(). There is
michael@0 12 * no way to "reset" an enumerator, once you obtain one.
michael@0 13 *
michael@0 14 * @version 1.0
michael@0 15 */
michael@0 16
michael@0 17 [scriptable, uuid(D1899240-F9D2-11D2-BDD6-000064657374)]
michael@0 18 interface nsISimpleEnumerator : nsISupports {
michael@0 19 /**
michael@0 20 * Called to determine whether or not the enumerator has
michael@0 21 * any elements that can be returned via getNext(). This method
michael@0 22 * is generally used to determine whether or not to initiate or
michael@0 23 * continue iteration over the enumerator, though it can be
michael@0 24 * called without subsequent getNext() calls. Does not affect
michael@0 25 * internal state of enumerator.
michael@0 26 *
michael@0 27 * @see getNext()
michael@0 28 * @return true if there are remaining elements in the enumerator.
michael@0 29 * false if there are no more elements in the enumerator.
michael@0 30 */
michael@0 31 boolean hasMoreElements();
michael@0 32
michael@0 33 /**
michael@0 34 * Called to retrieve the next element in the enumerator. The "next"
michael@0 35 * element is the first element upon the first call. Must be
michael@0 36 * pre-ceeded by a call to hasMoreElements() which returns PR_TRUE.
michael@0 37 * This method is generally called within a loop to iterate over
michael@0 38 * the elements in the enumerator.
michael@0 39 *
michael@0 40 * @see hasMoreElements()
michael@0 41 * @throws NS_ERROR_FAILURE if there are no more elements
michael@0 42 * to enumerate.
michael@0 43 * @return the next element in the enumeration.
michael@0 44 */
michael@0 45 nsISupports getNext();
michael@0 46 };

mercurial