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) 2002-2011, International Business Machines |
michael@0 | 5 | * Corporation and others. All Rights Reserved. |
michael@0 | 6 | * |
michael@0 | 7 | ****************************************************************************** |
michael@0 | 8 | * |
michael@0 | 9 | * File uassert.h |
michael@0 | 10 | * |
michael@0 | 11 | * Contains U_ASSERT macro |
michael@0 | 12 | * |
michael@0 | 13 | * By default, U_ASSERT just wraps the C library assert macro. |
michael@0 | 14 | * By changing the definition here, the assert behavior for ICU can be changed |
michael@0 | 15 | * without affecting other non-ICU uses of the C library assert(). |
michael@0 | 16 | * |
michael@0 | 17 | ****************************************************************************** |
michael@0 | 18 | */ |
michael@0 | 19 | |
michael@0 | 20 | #ifndef U_ASSERT_H |
michael@0 | 21 | #define U_ASSERT_H |
michael@0 | 22 | /* utypes.h is included to get the proper define for uint8_t */ |
michael@0 | 23 | #include "unicode/utypes.h" |
michael@0 | 24 | #if U_DEBUG |
michael@0 | 25 | # include <assert.h> |
michael@0 | 26 | # define U_ASSERT(exp) assert(exp) |
michael@0 | 27 | #else |
michael@0 | 28 | # define U_ASSERT(exp) |
michael@0 | 29 | #endif |
michael@0 | 30 | #endif |
michael@0 | 31 | |
michael@0 | 32 |