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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsUCvKOCID_h___
7 #define nsUCvKOCID_h___
9 #include "nsISupports.h"
11 // Class ID for our EUCKRToUnicode charset converter
12 // {379C2775-EC77-11d2-8AAC-00600811A836}
13 #define NS_EUCKRTOUNICODE_CID \
14 { 0x379c2775, 0xec77, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
16 // Class ID for our ISO2022KRToUnicode charset converter
17 // {BA61519f-1DFA-11d3-B3BF-00805F8A6670}
18 #define NS_ISO2022KRTOUNICODE_CID \
19 { 0xba61519f, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
21 // Class ID for our UnicodeToEUCKR charset converter
22 // {379C2778-EC77-11d2-8AAC-00600811A836}
23 #define NS_UNICODETOEUCKR_CID \
24 { 0x379c2778, 0xec77, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
26 // Class ID for our UnicodeToISO2022KR charset converter
27 // {BA6151A0-1DFA-11d3-B3BF-00805F8A6670}
28 #define NS_UNICODETOISO2022KR_CID \
29 { 0xba6151a0, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
31 // Class ID for our UnicodeToJohab charset converter
32 // {D9B1F97E-CFA0-80b6-FB92-9972E48E3DCC}
33 #define NS_UNICODETOJOHAB_CID \
34 { 0xd9b1f97e, 0xcfa0, 0x80b6, {0xfb, 0x92, 0x99, 0x72, 0xe4, 0x8e, 0x3d, 0xcc}}
36 // Class ID for our JohabToUnicode charset converter
37 // {D9B1F97F-CFA0-80b6-FB92-9972E48E3DCC}
38 #define NS_JOHABTOUNICODE_CID \
39 { 0xd9b1f97f, 0xcfa0, 0x80b6, {0xfb, 0x92, 0x99, 0x72, 0xe4, 0x8e, 0x3d, 0xcc}}
41 #endif /* nsUCvKOCID_h___ */