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 | /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef GFX_IMAGETYPES_H |
michael@0 | 7 | #define GFX_IMAGETYPES_H |
michael@0 | 8 | |
michael@0 | 9 | #include "mozilla/TypedEnum.h" |
michael@0 | 10 | |
michael@0 | 11 | namespace mozilla { |
michael@0 | 12 | |
michael@0 | 13 | MOZ_BEGIN_ENUM_CLASS(ImageFormat) |
michael@0 | 14 | /** |
michael@0 | 15 | * The PLANAR_YCBCR format creates a PlanarYCbCrImage. All backends should |
michael@0 | 16 | * support this format, because the Ogg video decoder depends on it. |
michael@0 | 17 | * The maximum image width and height is 16384. |
michael@0 | 18 | */ |
michael@0 | 19 | PLANAR_YCBCR, |
michael@0 | 20 | |
michael@0 | 21 | /** |
michael@0 | 22 | * The GRALLOC_PLANAR_YCBCR format creates a GrallocImage, a subtype of |
michael@0 | 23 | * PlanarYCbCrImage. It takes a PlanarYCbCrImage data or the raw gralloc |
michael@0 | 24 | * data and can be used as a texture by Gonk backend directly. |
michael@0 | 25 | */ |
michael@0 | 26 | GRALLOC_PLANAR_YCBCR, |
michael@0 | 27 | |
michael@0 | 28 | /** |
michael@0 | 29 | * The SHARED_RGB format creates a SharedRGBImage, which stores RGB data in |
michael@0 | 30 | * shared memory. Some Android hardware video decoders require this format. |
michael@0 | 31 | * Currently only used on Android. |
michael@0 | 32 | */ |
michael@0 | 33 | SHARED_RGB, |
michael@0 | 34 | |
michael@0 | 35 | /** |
michael@0 | 36 | * The CAIRO_SURFACE format creates a CairoImage. All backends should |
michael@0 | 37 | * support this format, because video rendering sometimes requires it. |
michael@0 | 38 | * |
michael@0 | 39 | * This format is useful even though a ThebesLayer could be used. |
michael@0 | 40 | * It makes it easy to render a cairo surface when another Image format |
michael@0 | 41 | * could be used. It can also avoid copying the surface data in some |
michael@0 | 42 | * cases. |
michael@0 | 43 | * |
michael@0 | 44 | * Images in CAIRO_SURFACE format should only be created and |
michael@0 | 45 | * manipulated on the main thread, since the underlying cairo surface |
michael@0 | 46 | * is main-thread-only. |
michael@0 | 47 | */ |
michael@0 | 48 | CAIRO_SURFACE, |
michael@0 | 49 | |
michael@0 | 50 | /** |
michael@0 | 51 | * A MacIOSurface object. |
michael@0 | 52 | */ |
michael@0 | 53 | MAC_IOSURFACE, |
michael@0 | 54 | |
michael@0 | 55 | /** |
michael@0 | 56 | * An bitmap image that can be shared with a remote process. |
michael@0 | 57 | */ |
michael@0 | 58 | REMOTE_IMAGE_BITMAP, |
michael@0 | 59 | |
michael@0 | 60 | /** |
michael@0 | 61 | * A OpenGL texture that can be shared across threads or processes |
michael@0 | 62 | */ |
michael@0 | 63 | SHARED_TEXTURE, |
michael@0 | 64 | |
michael@0 | 65 | /** |
michael@0 | 66 | * An DXGI shared surface handle that can be shared with a remote process. |
michael@0 | 67 | */ |
michael@0 | 68 | REMOTE_IMAGE_DXGI_TEXTURE, |
michael@0 | 69 | |
michael@0 | 70 | /** |
michael@0 | 71 | * The D3D9_RGB32_TEXTURE format creates a D3D9SurfaceImage, and wraps a |
michael@0 | 72 | * IDirect3DTexture9 in RGB32 layout. |
michael@0 | 73 | */ |
michael@0 | 74 | D3D9_RGB32_TEXTURE |
michael@0 | 75 | MOZ_END_ENUM_CLASS(ImageFormat) |
michael@0 | 76 | |
michael@0 | 77 | MOZ_BEGIN_ENUM_CLASS(StereoMode) |
michael@0 | 78 | MONO, |
michael@0 | 79 | LEFT_RIGHT, |
michael@0 | 80 | RIGHT_LEFT, |
michael@0 | 81 | BOTTOM_TOP, |
michael@0 | 82 | TOP_BOTTOM |
michael@0 | 83 | MOZ_END_ENUM_CLASS(StereoMode) |
michael@0 | 84 | |
michael@0 | 85 | } // namespace |
michael@0 | 86 | |
michael@0 | 87 | #endif |