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 file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PFMRadio;
7 namespace mozilla {
8 namespace dom {
10 struct ErrorResponse
11 {
12 nsString error;
13 };
15 struct SuccessResponse
16 {
17 };
19 union FMRadioResponseType
20 {
21 ErrorResponse;
22 SuccessResponse;
23 };
25 /**
26 * The protocol is used for sending asynchronous operation requests of
27 * FM radio HW from child to parent, and the type of the request is defined in
28 * FMRadioRequestArgs.
29 *
30 * When the request completed, the result, i.e. FMRadioResponseType, will be
31 * sent back to child from parent in the `__delete__` message.
32 */
33 async protocol PFMRadioRequest
34 {
35 manager PFMRadio;
37 child:
38 __delete__(FMRadioResponseType response);
39 };
41 } // namespace dom
42 } // namespace mozilla