dom/indexedDB/ipc/IndexedDBParams.ipdlh

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:6fabedd459b2
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/. */
4
5 include "mozilla/dom/indexedDB/SerializationHelpers.h";
6
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";
10
11 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
12
13 namespace mozilla {
14 namespace dom {
15 namespace indexedDB {
16 namespace ipc {
17
18 struct KeyRange
19 {
20 Key lower;
21 Key upper;
22 bool lowerOpen;
23 bool upperOpen;
24 bool isOnly;
25 };
26
27 union OptionalKeyRange
28 {
29 KeyRange;
30 void_t;
31 };
32
33 struct GetParams
34 {
35 KeyRange keyRange;
36 };
37
38 struct GetAllParams
39 {
40 OptionalKeyRange optionalKeyRange;
41 uint32_t limit;
42 };
43
44 struct GetAllKeysParams
45 {
46 OptionalKeyRange optionalKeyRange;
47 uint32_t limit;
48 };
49
50 struct CountParams
51 {
52 OptionalKeyRange optionalKeyRange;
53 };
54
55 struct OpenCursorParams
56 {
57 OptionalKeyRange optionalKeyRange;
58 Direction direction;
59 };
60
61 struct OpenKeyCursorParams
62 {
63 OptionalKeyRange optionalKeyRange;
64 Direction direction;
65 };
66
67 union OptionalStructuredCloneReadInfo
68 {
69 SerializedStructuredCloneReadInfo;
70 void_t;
71 };
72
73 } // namespace ipc
74 } // namespace indexedDB
75 } // namespace dom
76 } // namespace mozilla

mercurial