dom/indexedDB/ipc/PIndexedDBObjectStore.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/indexedDB/ipc/PIndexedDBObjectStore.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,113 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +include protocol PBlob;
     1.9 +include protocol PIndexedDBCursor;
    1.10 +include protocol PIndexedDBIndex;
    1.11 +include protocol PIndexedDBRequest;
    1.12 +include protocol PIndexedDBTransaction;
    1.13 +
    1.14 +include IndexedDBParams;
    1.15 +
    1.16 +using struct mozilla::dom::indexedDB::IndexInfo from "mozilla/dom/indexedDB/DatabaseInfo.h";
    1.17 +using struct mozilla::dom::indexedDB::IndexUpdateInfo from "mozilla/dom/indexedDB/DatabaseInfo.h";
    1.18 +using struct mozilla::dom::indexedDB::SerializedStructuredCloneWriteInfo from "mozilla/dom/indexedDB/IndexedDatabase.h";
    1.19 +
    1.20 +namespace mozilla {
    1.21 +namespace dom {
    1.22 +namespace indexedDB {
    1.23 +
    1.24 +namespace ipc {
    1.25 +
    1.26 +struct AddPutParams
    1.27 +{
    1.28 +  SerializedStructuredCloneWriteInfo cloneInfo;
    1.29 +  Key key;
    1.30 +  IndexUpdateInfo[] indexUpdateInfos;
    1.31 +  PBlob[] blobs;
    1.32 +};
    1.33 +
    1.34 +struct AddParams
    1.35 +{
    1.36 +  AddPutParams commonParams;
    1.37 +};
    1.38 +
    1.39 +struct PutParams
    1.40 +{
    1.41 +  AddPutParams commonParams;
    1.42 +};
    1.43 +
    1.44 +struct DeleteParams
    1.45 +{
    1.46 +  KeyRange keyRange;
    1.47 +};
    1.48 +
    1.49 +struct ClearParams
    1.50 +{
    1.51 +};
    1.52 +
    1.53 +union ObjectStoreRequestParams
    1.54 +{
    1.55 +  GetParams;
    1.56 +  GetAllParams;
    1.57 +  GetAllKeysParams;
    1.58 +  AddParams;
    1.59 +  PutParams;
    1.60 +  DeleteParams;
    1.61 +  ClearParams;
    1.62 +  CountParams;
    1.63 +  OpenCursorParams;
    1.64 +  OpenKeyCursorParams;
    1.65 +};
    1.66 +
    1.67 +struct CreateIndexParams
    1.68 +{
    1.69 +  IndexInfo info;
    1.70 +};
    1.71 +
    1.72 +struct GetIndexParams
    1.73 +{
    1.74 +  nsString name;
    1.75 +};
    1.76 +
    1.77 +union IndexConstructorParams
    1.78 +{
    1.79 +  CreateIndexParams;
    1.80 +  GetIndexParams;
    1.81 +};
    1.82 +
    1.83 +struct ObjectStoreCursorConstructorParams
    1.84 +{
    1.85 +  PIndexedDBRequest request;
    1.86 +  Direction direction;
    1.87 +  Key key;
    1.88 +  OptionalStructuredCloneReadInfo optionalCloneInfo;
    1.89 +  PBlob[] blobs;
    1.90 +};
    1.91 +
    1.92 +} // namespace ipc
    1.93 +
    1.94 +protocol PIndexedDBObjectStore
    1.95 +{
    1.96 +  manager PIndexedDBTransaction;
    1.97 +
    1.98 +  manages PIndexedDBCursor;
    1.99 +  manages PIndexedDBIndex;
   1.100 +  manages PIndexedDBRequest;
   1.101 +
   1.102 +parent:
   1.103 +  __delete__();
   1.104 +
   1.105 +  PIndexedDBIndex(IndexConstructorParams params);
   1.106 +  PIndexedDBRequest(ObjectStoreRequestParams params);
   1.107 +
   1.108 +  DeleteIndex(nsString name);
   1.109 +
   1.110 +child:
   1.111 +  PIndexedDBCursor(ObjectStoreCursorConstructorParams params);
   1.112 +};
   1.113 +
   1.114 +} // namespace indexedDB
   1.115 +} // namespace dom
   1.116 +} // namespace mozilla

mercurial