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) 2002-2013 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 // Fence.h: Defines the gl::Fence class, which supports the GL_NV_fence extension.
9 #ifndef LIBGLESV2_FENCE_H_
10 #define LIBGLESV2_FENCE_H_
12 #include "common/angleutils.h"
14 namespace rx
15 {
16 class Renderer;
17 class FenceImpl;
18 }
20 namespace gl
21 {
23 class Fence
24 {
25 public:
26 explicit Fence(rx::Renderer *renderer);
27 virtual ~Fence();
29 GLboolean isFence();
30 void setFence(GLenum condition);
31 GLboolean testFence();
32 void finishFence();
33 void getFenceiv(GLenum pname, GLint *params);
35 private:
36 DISALLOW_COPY_AND_ASSIGN(Fence);
38 rx::FenceImpl *mFence;
39 };
41 }
43 #endif // LIBGLESV2_FENCE_H_