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) 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 // BufferStorage9.h Defines the BufferStorage9 class.
9 #ifndef LIBGLESV2_RENDERER_BUFFERSTORAGE9_H_
10 #define LIBGLESV2_RENDERER_BUFFERSTORAGE9_H_
12 #include "libGLESv2/renderer/BufferStorage.h"
14 namespace rx
15 {
17 class BufferStorage9 : public BufferStorage
18 {
19 public:
20 BufferStorage9();
21 virtual ~BufferStorage9();
23 static BufferStorage9 *makeBufferStorage9(BufferStorage *bufferStorage);
25 virtual void *getData();
26 virtual void setData(const void* data, unsigned int size, unsigned int offset);
27 virtual void clear();
28 virtual unsigned int getSize() const;
29 virtual bool supportsDirectBinding() const;
31 private:
32 DISALLOW_COPY_AND_ASSIGN(BufferStorage9);
34 void *mMemory;
35 unsigned int mAllocatedSize;
37 unsigned int mSize;
38 };
40 }
42 #endif // LIBGLESV2_RENDERER_BUFFERSTORAGE9_H_