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 | * Copyright (c) 1999 |
michael@0 | 3 | * Silicon Graphics Computer Systems, Inc. |
michael@0 | 4 | * |
michael@0 | 5 | * Copyright (c) 1999 |
michael@0 | 6 | * Boris Fomitchev |
michael@0 | 7 | * |
michael@0 | 8 | * This material is provided "as is", with absolutely no warranty expressed |
michael@0 | 9 | * or implied. Any use is at your own risk. |
michael@0 | 10 | * |
michael@0 | 11 | * Permission to use or copy this software for any purpose is hereby granted |
michael@0 | 12 | * without fee, provided the above notices are retained on all copies. |
michael@0 | 13 | * Permission to modify the code and to distribute modified code is granted, |
michael@0 | 14 | * provided the above notices are retained, and a notice that the code was |
michael@0 | 15 | * modified is included with the above copyright notice. |
michael@0 | 16 | * |
michael@0 | 17 | */ |
michael@0 | 18 | #include "stlport_prefix.h" |
michael@0 | 19 | |
michael@0 | 20 | #include <ostream> |
michael@0 | 21 | |
michael@0 | 22 | _STLP_BEGIN_NAMESPACE |
michael@0 | 23 | |
michael@0 | 24 | #if !defined(_STLP_NO_FORCE_INSTANTIATE) |
michael@0 | 25 | |
michael@0 | 26 | // instantiations |
michael@0 | 27 | template class _STLP_CLASS_DECLSPEC basic_ostream<char, char_traits<char> >; |
michael@0 | 28 | |
michael@0 | 29 | # if defined (_STLP_USE_TEMPLATE_EXPORT) |
michael@0 | 30 | template class _STLP_CLASS_DECLSPEC _Osentry<char, char_traits<char> >; |
michael@0 | 31 | # endif |
michael@0 | 32 | |
michael@0 | 33 | #ifndef _STLP_NO_WCHAR_T |
michael@0 | 34 | |
michael@0 | 35 | # if defined (_STLP_USE_TEMPLATE_EXPORT) |
michael@0 | 36 | template class _STLP_CLASS_DECLSPEC _Osentry<wchar_t, char_traits<wchar_t> >; |
michael@0 | 37 | # endif |
michael@0 | 38 | template class _STLP_CLASS_DECLSPEC basic_ostream<wchar_t, char_traits<wchar_t> >; |
michael@0 | 39 | #endif |
michael@0 | 40 | |
michael@0 | 41 | #endif |
michael@0 | 42 | |
michael@0 | 43 | _STLP_END_NAMESPACE |
michael@0 | 44 | |
michael@0 | 45 | // Local Variables: |
michael@0 | 46 | // mode:C++ |
michael@0 | 47 | // End: |