Bumping manifests a=b2g-bump
[gecko.git] / dom / indexedDB / ipc / PIndexedDBObjectStore.ipdl
blob8026db4086cd4a20500f49b31cc6bf3e899dfe4b
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 protocol PBlob;
6 include protocol PIndexedDBCursor;
7 include protocol PIndexedDBIndex;
8 include protocol PIndexedDBRequest;
9 include protocol PIndexedDBTransaction;
11 include IndexedDBParams;
13 using struct mozilla::dom::indexedDB::IndexInfo from "mozilla/dom/indexedDB/DatabaseInfo.h";
14 using struct mozilla::dom::indexedDB::IndexUpdateInfo from "mozilla/dom/indexedDB/DatabaseInfo.h";
15 using struct mozilla::dom::indexedDB::SerializedStructuredCloneWriteInfo from "mozilla/dom/indexedDB/IndexedDatabase.h";
17 namespace mozilla {
18 namespace dom {
19 namespace indexedDB {
21 namespace ipc {
23 struct AddPutParams
25   SerializedStructuredCloneWriteInfo cloneInfo;
26   Key key;
27   IndexUpdateInfo[] indexUpdateInfos;
28   PBlob[] blobs;
31 struct AddParams
33   AddPutParams commonParams;
36 struct PutParams
38   AddPutParams commonParams;
41 struct DeleteParams
43   KeyRange keyRange;
46 struct ClearParams
50 union ObjectStoreRequestParams
52   GetParams;
53   GetAllParams;
54   GetAllKeysParams;
55   AddParams;
56   PutParams;
57   DeleteParams;
58   ClearParams;
59   CountParams;
60   OpenCursorParams;
61   OpenKeyCursorParams;
64 struct CreateIndexParams
66   IndexInfo info;
69 struct GetIndexParams
71   nsString name;
74 union IndexConstructorParams
76   CreateIndexParams;
77   GetIndexParams;
80 struct ObjectStoreCursorConstructorParams
82   PIndexedDBRequest request;
83   Direction direction;
84   Key key;
85   OptionalStructuredCloneReadInfo optionalCloneInfo;
86   PBlob[] blobs;
89 } // namespace ipc
91 protocol PIndexedDBObjectStore
93   manager PIndexedDBTransaction;
95   manages PIndexedDBCursor;
96   manages PIndexedDBIndex;
97   manages PIndexedDBRequest;
99 parent:
100   __delete__();
102   PIndexedDBIndex(IndexConstructorParams params);
103   PIndexedDBRequest(ObjectStoreRequestParams params);
105   DeleteIndex(nsString name);
107 child:
108   PIndexedDBCursor(ObjectStoreCursorConstructorParams params);
111 } // namespace indexedDB
112 } // namespace dom
113 } // namespace mozilla