gfx/ots/src/gdef.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 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
     2 // Use of this source code is governed by a BSD-style license that can be
     3 // found in the LICENSE file.
     5 #ifndef OTS_GDEF_H_
     6 #define OTS_GDEF_H_
     8 #include "ots.h"
    10 namespace ots {
    12 struct OpenTypeGDEF {
    13   OpenTypeGDEF()
    14       : version_2(false),
    15         has_glyph_class_def(false),
    16         has_mark_attachment_class_def(false),
    17         has_mark_glyph_sets_def(false),
    18         num_mark_glyph_sets(0),
    19         data(NULL),
    20         length(0) {
    21   }
    23   bool version_2;
    24   bool has_glyph_class_def;
    25   bool has_mark_attachment_class_def;
    26   bool has_mark_glyph_sets_def;
    27   uint16_t num_mark_glyph_sets;
    29   const uint8_t *data;
    30   size_t length;
    31 };
    33 }  // namespace ots
    35 #endif

mercurial