Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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