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.
michael@0 | 1 | /* |
michael@0 | 2 | ****************************************************************************** |
michael@0 | 3 | * |
michael@0 | 4 | * Copyright (C) 2001, International Business Machines |
michael@0 | 5 | * Corporation and others. All Rights Reserved. |
michael@0 | 6 | * |
michael@0 | 7 | ****************************************************************************** |
michael@0 | 8 | * file name: cwchar.h |
michael@0 | 9 | * encoding: US-ASCII |
michael@0 | 10 | * tab size: 8 (not used) |
michael@0 | 11 | * indentation:4 |
michael@0 | 12 | * |
michael@0 | 13 | * created on: 2001may25 |
michael@0 | 14 | * created by: Markus W. Scherer |
michael@0 | 15 | * |
michael@0 | 16 | * This file contains ICU-internal definitions of wchar_t operations. |
michael@0 | 17 | * These definitions were moved here from cstring.h so that fewer |
michael@0 | 18 | * ICU implementation files include wchar.h. |
michael@0 | 19 | */ |
michael@0 | 20 | |
michael@0 | 21 | #ifndef __CWCHAR_H__ |
michael@0 | 22 | #define __CWCHAR_H__ |
michael@0 | 23 | |
michael@0 | 24 | #include <string.h> |
michael@0 | 25 | #include <stdlib.h> |
michael@0 | 26 | #include "unicode/utypes.h" |
michael@0 | 27 | |
michael@0 | 28 | /* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */ |
michael@0 | 29 | #if U_HAVE_WCHAR_H |
michael@0 | 30 | # include <wchar.h> |
michael@0 | 31 | #endif |
michael@0 | 32 | |
michael@0 | 33 | /*===========================================================================*/ |
michael@0 | 34 | /* Wide-character functions */ |
michael@0 | 35 | /*===========================================================================*/ |
michael@0 | 36 | |
michael@0 | 37 | /* The following are not available on all systems, defined in wchar.h or string.h. */ |
michael@0 | 38 | #if U_HAVE_WCSCPY |
michael@0 | 39 | # define uprv_wcscpy wcscpy |
michael@0 | 40 | # define uprv_wcscat wcscat |
michael@0 | 41 | # define uprv_wcslen wcslen |
michael@0 | 42 | #else |
michael@0 | 43 | U_CAPI wchar_t* U_EXPORT2 |
michael@0 | 44 | uprv_wcscpy(wchar_t *dst, const wchar_t *src); |
michael@0 | 45 | U_CAPI wchar_t* U_EXPORT2 |
michael@0 | 46 | uprv_wcscat(wchar_t *dst, const wchar_t *src); |
michael@0 | 47 | U_CAPI size_t U_EXPORT2 |
michael@0 | 48 | uprv_wcslen(const wchar_t *src); |
michael@0 | 49 | #endif |
michael@0 | 50 | |
michael@0 | 51 | /* The following are part of the ANSI C standard, defined in stdlib.h . */ |
michael@0 | 52 | #define uprv_wcstombs(mbstr, wcstr, count) U_STANDARD_CPP_NAMESPACE wcstombs(mbstr, wcstr, count) |
michael@0 | 53 | #define uprv_mbstowcs(wcstr, mbstr, count) U_STANDARD_CPP_NAMESPACE mbstowcs(wcstr, mbstr, count) |
michael@0 | 54 | |
michael@0 | 55 | |
michael@0 | 56 | #endif |