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 <locale> |
michael@0 | 21 | |
michael@0 | 22 | _STLP_BEGIN_NAMESPACE |
michael@0 | 23 | |
michael@0 | 24 | //---------------------------------------------------------------------- |
michael@0 | 25 | // numpunct<char> |
michael@0 | 26 | char numpunct<char>::do_decimal_point() const {return '.';} |
michael@0 | 27 | char numpunct<char>::do_thousands_sep() const { return ','; } |
michael@0 | 28 | string numpunct<char>::do_grouping() const { return string();} |
michael@0 | 29 | string numpunct<char>::do_truename() const { return "true";} |
michael@0 | 30 | string numpunct<char>::do_falsename() const { return "false"; } |
michael@0 | 31 | numpunct<char>::~numpunct() {} |
michael@0 | 32 | |
michael@0 | 33 | #if !defined (_STLP_NO_WCHAR_T) |
michael@0 | 34 | wchar_t numpunct<wchar_t>::do_decimal_point() const { return L'.'; } |
michael@0 | 35 | wchar_t numpunct<wchar_t>::do_thousands_sep() const { return L','; } |
michael@0 | 36 | string numpunct<wchar_t>::do_grouping() const { return string(); } |
michael@0 | 37 | wstring numpunct<wchar_t>::do_truename() const { return L"true"; } |
michael@0 | 38 | wstring numpunct<wchar_t>::do_falsename() const { return L"false"; } |
michael@0 | 39 | numpunct<wchar_t>::~numpunct() {} |
michael@0 | 40 | #endif |
michael@0 | 41 | |
michael@0 | 42 | _STLP_END_NAMESPACE |
michael@0 | 43 | |
michael@0 | 44 | // Local Variables: |
michael@0 | 45 | // mode:C++ |
michael@0 | 46 | // End: |