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.
1 /*
2 **********************************************************************
3 * Copyright (c) 2000-2005, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 01/11/2000 aliu Creation.
8 **********************************************************************
9 */
11 #include "unicode/utypes.h"
13 #if !UCONFIG_NO_TRANSLITERATION
15 #include "nultrans.h"
17 U_NAMESPACE_BEGIN
19 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator)
21 NullTransliterator::NullTransliterator() : Transliterator(UNICODE_STRING_SIMPLE("Any-Null"), 0) {}
23 NullTransliterator::~NullTransliterator() {}
25 Transliterator* NullTransliterator::clone(void) const {
26 return new NullTransliterator();
27 }
29 void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,
30 UBool /*isIncremental*/) const {
31 offsets.start = offsets.limit;
32 }
34 U_NAMESPACE_END
36 #endif /* #if !UCONFIG_NO_TRANSLITERATION */