Sat, 03 Jan 2015 20:18:00 +0100
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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsInterfaceRequestorAgg_h__
6 #define nsInterfaceRequestorAgg_h__
8 #include "nsError.h"
10 class nsIEventTarget;
11 class nsIInterfaceRequestor;
13 /**
14 * This function returns an instance of nsIInterfaceRequestor that aggregates
15 * two nsIInterfaceRequestor instances. Its GetInterface method queries
16 * aFirst for the requested interface and will query aSecond only if aFirst
17 * failed to supply the requested interface. Both aFirst and aSecond may
18 * be null, and will be released on the main thread when the aggregator is
19 * destroyed.
20 */
21 extern nsresult
22 NS_NewInterfaceRequestorAggregation(nsIInterfaceRequestor *aFirst,
23 nsIInterfaceRequestor *aSecond,
24 nsIInterfaceRequestor **aResult);
26 /**
27 * Like the previous method, but aFirst and aSecond will be released on the
28 * provided target thread.
29 */
30 extern nsresult
31 NS_NewInterfaceRequestorAggregation(nsIInterfaceRequestor *aFirst,
32 nsIInterfaceRequestor *aSecond,
33 nsIEventTarget *aTarget,
34 nsIInterfaceRequestor **aResult);
36 #endif // !defined( nsInterfaceRequestorAgg_h__ )