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 | /* vim:set ts=2 sw=2 sts=2 et: */ |
michael@0 | 2 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | * http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 4 | */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef GFX_TEST_LAYERS_H |
michael@0 | 7 | #define GFX_TEST_LAYERS_H |
michael@0 | 8 | |
michael@0 | 9 | #include "Layers.h" |
michael@0 | 10 | #include "nsTArray.h" |
michael@0 | 11 | |
michael@0 | 12 | /* Create layer tree from a simple layer tree description syntax. |
michael@0 | 13 | * Each index is either the first letter of the layer type or |
michael@0 | 14 | * a '(',')' to indicate the start/end of the child layers. |
michael@0 | 15 | * The aim of this function is to remove hard to read |
michael@0 | 16 | * layer tree creation code. |
michael@0 | 17 | * |
michael@0 | 18 | * Example "c(c(c(tt)t))" would yield: |
michael@0 | 19 | * c |
michael@0 | 20 | * | |
michael@0 | 21 | * c |
michael@0 | 22 | * / \ |
michael@0 | 23 | * c t |
michael@0 | 24 | * / \ |
michael@0 | 25 | * t t |
michael@0 | 26 | */ |
michael@0 | 27 | already_AddRefed<mozilla::layers::Layer> CreateLayerTree( |
michael@0 | 28 | const char* aLayerTreeDescription, |
michael@0 | 29 | nsIntRegion* aVisibleRegions, |
michael@0 | 30 | const gfx3DMatrix* aTransforms, |
michael@0 | 31 | nsRefPtr<mozilla::layers::LayerManager>& aLayerManager, |
michael@0 | 32 | nsTArray<nsRefPtr<mozilla::layers::Layer> >& aLayersOut); |
michael@0 | 33 | |
michael@0 | 34 | |
michael@0 | 35 | #endif |
michael@0 | 36 |