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 | // MurmurHash3 was written by Austin Appleby, and is placed in the public |
michael@0 | 3 | // domain. The author hereby disclaims copyright to this source code. |
michael@0 | 4 | |
michael@0 | 5 | #ifndef _MURMURHASH3_H_ |
michael@0 | 6 | #define _MURMURHASH3_H_ |
michael@0 | 7 | |
michael@0 | 8 | //----------------------------------------------------------------------------- |
michael@0 | 9 | // Platform-specific functions and macros |
michael@0 | 10 | |
michael@0 | 11 | // Microsoft Visual Studio |
michael@0 | 12 | |
michael@0 | 13 | #if defined(_MSC_VER) |
michael@0 | 14 | |
michael@0 | 15 | typedef unsigned char uint8_t; |
michael@0 | 16 | typedef unsigned long uint32_t; |
michael@0 | 17 | typedef unsigned __int64 uint64_t; |
michael@0 | 18 | |
michael@0 | 19 | // Other compilers |
michael@0 | 20 | |
michael@0 | 21 | #else // defined(_MSC_VER) |
michael@0 | 22 | |
michael@0 | 23 | #include <stdint.h> |
michael@0 | 24 | |
michael@0 | 25 | #endif // !defined(_MSC_VER) |
michael@0 | 26 | |
michael@0 | 27 | //----------------------------------------------------------------------------- |
michael@0 | 28 | |
michael@0 | 29 | void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out ); |
michael@0 | 30 | |
michael@0 | 31 | void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out ); |
michael@0 | 32 | |
michael@0 | 33 | void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out ); |
michael@0 | 34 | |
michael@0 | 35 | //----------------------------------------------------------------------------- |
michael@0 | 36 | |
michael@0 | 37 | #endif // _MURMURHASH3_H_ |