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.
2 /*
3 * Copyright 2006 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
10 #ifndef SkXMLAnimatorWriter_DEFINED
11 #define SkXMLAnimatorWriter_DEFINED
13 #include "SkXMLWriter.h"
15 class SkAnimator;
16 class SkDisplayXMLParser;
18 class SkXMLAnimatorWriter : public SkXMLWriter {
19 public:
20 SkXMLAnimatorWriter(SkAnimator*);
21 virtual ~SkXMLAnimatorWriter();
22 virtual void writeHeader();
23 SkDEBUGCODE(static void UnitTest(class SkCanvas* canvas);)
24 protected:
25 virtual void onAddAttributeLen(const char name[], const char value[], size_t length);
26 virtual void onEndElement();
27 virtual void onStartElementLen(const char elem[], size_t length);
28 private:
29 SkAnimator* fAnimator;
30 SkDisplayXMLParser* fParser;
31 };
33 #endif // SkXMLAnimatorWriter_DEFINED