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 | * Copyright (C) 2009, International Business Machines |
michael@0 | 4 | * Corporation and others. All Rights Reserved. |
michael@0 | 5 | ****************************************************************************** |
michael@0 | 6 | */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef ULIST_H |
michael@0 | 9 | #define ULIST_H |
michael@0 | 10 | |
michael@0 | 11 | #include "unicode/utypes.h" |
michael@0 | 12 | #include "unicode/uenum.h" |
michael@0 | 13 | |
michael@0 | 14 | struct UList; |
michael@0 | 15 | typedef struct UList UList; |
michael@0 | 16 | |
michael@0 | 17 | U_CAPI UList * U_EXPORT2 ulist_createEmptyList(UErrorCode *status); |
michael@0 | 18 | |
michael@0 | 19 | U_CAPI void U_EXPORT2 ulist_addItemEndList(UList *list, const void *data, UBool forceDelete, UErrorCode *status); |
michael@0 | 20 | |
michael@0 | 21 | U_CAPI void U_EXPORT2 ulist_addItemBeginList(UList *list, const void *data, UBool forceDelete, UErrorCode *status); |
michael@0 | 22 | |
michael@0 | 23 | U_CAPI UBool U_EXPORT2 ulist_containsString(const UList *list, const char *data, int32_t length); |
michael@0 | 24 | |
michael@0 | 25 | U_CAPI void *U_EXPORT2 ulist_getNext(UList *list); |
michael@0 | 26 | |
michael@0 | 27 | U_CAPI int32_t U_EXPORT2 ulist_getListSize(const UList *list); |
michael@0 | 28 | |
michael@0 | 29 | U_CAPI void U_EXPORT2 ulist_resetList(UList *list); |
michael@0 | 30 | |
michael@0 | 31 | U_CAPI void U_EXPORT2 ulist_deleteList(UList *list); |
michael@0 | 32 | |
michael@0 | 33 | /* |
michael@0 | 34 | * The following are for use when creating UEnumeration object backed by UList. |
michael@0 | 35 | */ |
michael@0 | 36 | U_CAPI void U_EXPORT2 ulist_close_keyword_values_iterator(UEnumeration *en); |
michael@0 | 37 | |
michael@0 | 38 | U_CAPI int32_t U_EXPORT2 ulist_count_keyword_values(UEnumeration *en, UErrorCode *status); |
michael@0 | 39 | |
michael@0 | 40 | U_CAPI const char * U_EXPORT2 ulist_next_keyword_value(UEnumeration* en, int32_t *resultLength, UErrorCode* status); |
michael@0 | 41 | |
michael@0 | 42 | U_CAPI void U_EXPORT2 ulist_reset_keyword_values_iterator(UEnumeration* en, UErrorCode* status); |
michael@0 | 43 | |
michael@0 | 44 | U_CAPI UList * U_EXPORT2 ulist_getListFromEnum(UEnumeration *en); |
michael@0 | 45 | |
michael@0 | 46 | #endif |