dom/indexedDB/ipc/IndexedDBParams.ipdlh

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 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 include "mozilla/dom/indexedDB/SerializationHelpers.h";
     7 using class mozilla::dom::indexedDB::Key from "mozilla/dom/indexedDB/Key.h";
     8 using mozilla::dom::indexedDB::IDBCursor::Direction from "mozilla/dom/indexedDB/IDBCursor.h";
     9 using struct mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo from "mozilla/dom/indexedDB/IndexedDatabase.h";
    11 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
    13 namespace mozilla {
    14 namespace dom {
    15 namespace indexedDB {
    16 namespace ipc {
    18 struct KeyRange
    19 {
    20   Key lower;
    21   Key upper;
    22   bool lowerOpen;
    23   bool upperOpen;
    24   bool isOnly;
    25 };
    27 union OptionalKeyRange
    28 {
    29   KeyRange;
    30   void_t;
    31 };
    33 struct GetParams
    34 {
    35   KeyRange keyRange;
    36 };
    38 struct GetAllParams
    39 {
    40   OptionalKeyRange optionalKeyRange;
    41   uint32_t limit;
    42 };
    44 struct GetAllKeysParams
    45 {
    46   OptionalKeyRange optionalKeyRange;
    47   uint32_t limit;
    48 };
    50 struct CountParams
    51 {
    52   OptionalKeyRange optionalKeyRange;
    53 };
    55 struct OpenCursorParams
    56 {
    57   OptionalKeyRange optionalKeyRange;
    58   Direction direction;
    59 };
    61 struct OpenKeyCursorParams
    62 {
    63   OptionalKeyRange optionalKeyRange;
    64   Direction direction;
    65 };
    67 union OptionalStructuredCloneReadInfo
    68 {
    69   SerializedStructuredCloneReadInfo;
    70   void_t;
    71 };
    73 } // namespace ipc
    74 } // namespace indexedDB
    75 } // namespace dom
    76 } // namespace mozilla

mercurial