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 | /* |
michael@0 | 3 | * Copyright 2006 The Android Open Source Project |
michael@0 | 4 | * |
michael@0 | 5 | * Use of this source code is governed by a BSD-style license that can be |
michael@0 | 6 | * found in the LICENSE file. |
michael@0 | 7 | */ |
michael@0 | 8 | |
michael@0 | 9 | |
michael@0 | 10 | #ifndef SkDrawRectangle_DEFINED |
michael@0 | 11 | #define SkDrawRectangle_DEFINED |
michael@0 | 12 | |
michael@0 | 13 | #include "SkBoundable.h" |
michael@0 | 14 | #include "SkMemberInfo.h" |
michael@0 | 15 | #include "SkRect.h" |
michael@0 | 16 | |
michael@0 | 17 | class SkRectToRect; |
michael@0 | 18 | |
michael@0 | 19 | class SkDrawRect : public SkBoundable { |
michael@0 | 20 | DECLARE_DRAW_MEMBER_INFO(Rect); |
michael@0 | 21 | SkDrawRect(); |
michael@0 | 22 | virtual void dirty(); |
michael@0 | 23 | virtual bool draw(SkAnimateMaker& ); |
michael@0 | 24 | #ifdef SK_DUMP_ENABLED |
michael@0 | 25 | virtual void dump(SkAnimateMaker* ); |
michael@0 | 26 | #endif |
michael@0 | 27 | virtual SkDisplayable* getParent() const; |
michael@0 | 28 | virtual bool getProperty(int index, SkScriptValue* value) const; |
michael@0 | 29 | virtual bool setParent(SkDisplayable* parent); |
michael@0 | 30 | virtual bool setProperty(int index, SkScriptValue& ); |
michael@0 | 31 | protected: |
michael@0 | 32 | SkRect fRect; |
michael@0 | 33 | SkDisplayable* fParent; |
michael@0 | 34 | private: |
michael@0 | 35 | friend class SkDrawClip; |
michael@0 | 36 | friend class SkRectToRect; |
michael@0 | 37 | friend class SkSaveLayer; |
michael@0 | 38 | typedef SkBoundable INHERITED; |
michael@0 | 39 | }; |
michael@0 | 40 | |
michael@0 | 41 | class SkRoundRect : public SkDrawRect { |
michael@0 | 42 | DECLARE_MEMBER_INFO(RoundRect); |
michael@0 | 43 | SkRoundRect(); |
michael@0 | 44 | virtual bool draw(SkAnimateMaker& ); |
michael@0 | 45 | #ifdef SK_DUMP_ENABLED |
michael@0 | 46 | virtual void dump(SkAnimateMaker* ); |
michael@0 | 47 | #endif |
michael@0 | 48 | protected: |
michael@0 | 49 | SkScalar rx; |
michael@0 | 50 | SkScalar ry; |
michael@0 | 51 | private: |
michael@0 | 52 | typedef SkDrawRect INHERITED; |
michael@0 | 53 | }; |
michael@0 | 54 | |
michael@0 | 55 | #endif // SkDrawRectangle_DEFINED |