xpcom/base/nsIInterfaceRequestor.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: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 /**
michael@0 10 * The nsIInterfaceRequestor interface defines a generic interface for
michael@0 11 * requesting interfaces that a given object might provide access to.
michael@0 12 * This is very similar to QueryInterface found in nsISupports.
michael@0 13 * The main difference is that interfaces returned from GetInterface()
michael@0 14 * are not required to provide a way back to the object implementing this
michael@0 15 * interface. The semantics of QI() dictate that given an interface A that
michael@0 16 * you QI() on to get to interface B, you must be able to QI on B to get back
michael@0 17 * to A. This interface however allows you to obtain an interface C from A
michael@0 18 * that may or most likely will not have the ability to get back to A.
michael@0 19 */
michael@0 20
michael@0 21 [scriptable, uuid(033A1470-8B2A-11d3-AF88-00A024FFC08C)]
michael@0 22 interface nsIInterfaceRequestor : nsISupports
michael@0 23 {
michael@0 24 /**
michael@0 25 * Retrieves the specified interface pointer.
michael@0 26 *
michael@0 27 * @param uuid The IID of the interface being requested.
michael@0 28 * @param result [out] The interface pointer to be filled in if
michael@0 29 * the interface is accessible.
michael@0 30 * @throws NS_NOINTERFACE - interface not accessible.
michael@0 31 * @throws NS_ERROR* - method failure.
michael@0 32 */
michael@0 33 void getInterface(in nsIIDRef uuid,
michael@0 34 [iid_is(uuid),retval] out nsQIResult result);
michael@0 35 };
michael@0 36

mercurial