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.
1 //
2 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
7 // RenderTarget9.h: Defines a D3D9-specific wrapper for IDirect3DSurface9 pointers
8 // retained by Renderbuffers.
10 #ifndef LIBGLESV2_RENDERER_RENDERTARGET9_H_
11 #define LIBGLESV2_RENDERER_RENDERTARGET9_H_
13 #include "libGLESv2/renderer/RenderTarget.h"
15 namespace rx
16 {
17 class Renderer;
18 class Renderer9;
20 class RenderTarget9 : public RenderTarget
21 {
22 public:
23 RenderTarget9(Renderer *renderer, IDirect3DSurface9 *surface);
24 RenderTarget9(Renderer *renderer, GLsizei width, GLsizei height, GLenum format, GLsizei samples);
25 virtual ~RenderTarget9();
27 static RenderTarget9 *makeRenderTarget9(RenderTarget *renderTarget);
28 IDirect3DSurface9 *getSurface();
30 private:
31 DISALLOW_COPY_AND_ASSIGN(RenderTarget9);
33 IDirect3DSurface9 *mRenderTarget;
35 Renderer9 *mRenderer;
36 };
38 }
40 #endif // LIBGLESV2_RENDERER_RENDERTARGET9_H_