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 2012 Google Inc. |
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 | #ifndef SkRTreeCanvas_DEFINED |
michael@0 | 10 | #define SkRTreeCanvas_DEFINED |
michael@0 | 11 | |
michael@0 | 12 | #include "SkBBoxHierarchy.h" |
michael@0 | 13 | #include "SkBBoxRecord.h" |
michael@0 | 14 | |
michael@0 | 15 | /** |
michael@0 | 16 | * This records bounding box information into an SkBBoxHierarchy, and clip/transform information |
michael@0 | 17 | * into an SkPictureStateTree to allow for efficient culling and correct playback of draws. |
michael@0 | 18 | */ |
michael@0 | 19 | class SkBBoxHierarchyRecord : public SkBBoxRecord, public SkBBoxHierarchyClient { |
michael@0 | 20 | public: |
michael@0 | 21 | /** This will take a ref of h */ |
michael@0 | 22 | SkBBoxHierarchyRecord(const SkISize& size, uint32_t recordFlags, SkBBoxHierarchy* h); |
michael@0 | 23 | |
michael@0 | 24 | virtual void handleBBox(const SkRect& bounds) SK_OVERRIDE; |
michael@0 | 25 | |
michael@0 | 26 | // Implementation of the SkBBoxHierarchyClient interface |
michael@0 | 27 | virtual bool shouldRewind(void* data) SK_OVERRIDE; |
michael@0 | 28 | |
michael@0 | 29 | protected: |
michael@0 | 30 | virtual void willSave(SaveFlags) SK_OVERRIDE; |
michael@0 | 31 | virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK_OVERRIDE; |
michael@0 | 32 | virtual void willRestore() SK_OVERRIDE; |
michael@0 | 33 | |
michael@0 | 34 | virtual void didTranslate(SkScalar, SkScalar) SK_OVERRIDE; |
michael@0 | 35 | virtual void didScale(SkScalar, SkScalar) SK_OVERRIDE; |
michael@0 | 36 | virtual void didRotate(SkScalar) SK_OVERRIDE; |
michael@0 | 37 | virtual void didSkew(SkScalar, SkScalar) SK_OVERRIDE; |
michael@0 | 38 | virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
michael@0 | 39 | virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
michael@0 | 40 | |
michael@0 | 41 | virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
michael@0 | 42 | virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
michael@0 | 43 | virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
michael@0 | 44 | virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
michael@0 | 45 | |
michael@0 | 46 | private: |
michael@0 | 47 | typedef SkBBoxRecord INHERITED; |
michael@0 | 48 | }; |
michael@0 | 49 | |
michael@0 | 50 | #endif |