dom/indexedDB/ipc/PIndexedDBIndex.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/indexedDB/ipc/PIndexedDBIndex.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,64 @@
     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 PIndexedDBObjectStore;
    1.11 +include protocol PIndexedDBRequest;
    1.12 +
    1.13 +include IndexedDBParams;
    1.14 +
    1.15 +namespace mozilla {
    1.16 +namespace dom {
    1.17 +namespace indexedDB {
    1.18 +
    1.19 +namespace ipc {
    1.20 +
    1.21 +struct GetKeyParams
    1.22 +{
    1.23 +  KeyRange keyRange;
    1.24 +};
    1.25 +
    1.26 +union IndexRequestParams
    1.27 +{
    1.28 +  GetParams;
    1.29 +  GetKeyParams;
    1.30 +  GetAllParams;
    1.31 +  GetAllKeysParams;
    1.32 +  CountParams;
    1.33 +  OpenCursorParams;
    1.34 +  OpenKeyCursorParams;
    1.35 +};
    1.36 +
    1.37 +struct IndexCursorConstructorParams
    1.38 +{
    1.39 +  PIndexedDBRequest request;
    1.40 +  Direction direction;
    1.41 +  Key key;
    1.42 +  Key objectKey;
    1.43 +  OptionalStructuredCloneReadInfo optionalCloneInfo;
    1.44 +  PBlob[] blobs;
    1.45 +};
    1.46 +
    1.47 +} // namespace ipc
    1.48 +
    1.49 +protocol PIndexedDBIndex
    1.50 +{
    1.51 +  manager PIndexedDBObjectStore;
    1.52 +
    1.53 +  manages PIndexedDBCursor;
    1.54 +  manages PIndexedDBRequest;
    1.55 +
    1.56 +parent:
    1.57 +  __delete__();
    1.58 +
    1.59 +  PIndexedDBRequest(IndexRequestParams params);
    1.60 +
    1.61 +child:
    1.62 +  PIndexedDBCursor(IndexCursorConstructorParams params);
    1.63 +};
    1.64 +
    1.65 +} // namespace indexedDB
    1.66 +} // namespace dom
    1.67 +} // namespace mozilla

mercurial