gfx/angle/src/libGLESv2/renderer/Query9.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 // Query9.h: Defines the rx::Query9 class which implements rx::QueryImpl.
     9 #ifndef LIBGLESV2_RENDERER_QUERY9_H_
    10 #define LIBGLESV2_RENDERER_QUERY9_H_
    12 #include "libGLESv2/renderer/QueryImpl.h"
    14 namespace rx
    15 {
    16 class Renderer9;
    18 class Query9 : public QueryImpl
    19 {
    20   public:
    21     Query9(rx::Renderer9 *renderer, GLenum type);
    22     virtual ~Query9();
    24     void begin();
    25     void end();
    26     GLuint getResult();
    27     GLboolean isResultAvailable();
    29   private:
    30     DISALLOW_COPY_AND_ASSIGN(Query9);
    32     GLboolean testQuery();
    34     rx::Renderer9 *mRenderer;
    35     IDirect3DQuery9 *mQuery;
    36 };
    38 }
    40 #endif // LIBGLESV2_RENDERER_QUERY9_H_

mercurial