dom/indexedDB/ipc/PIndexedDBCursor.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/indexedDB/ipc/PIndexedDBCursor.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     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 PIndexedDBIndex;
     1.9 +include protocol PIndexedDBObjectStore;
    1.10 +include protocol PIndexedDBRequest;
    1.11 +
    1.12 +include "mozilla/dom/indexedDB/SerializationHelpers.h";
    1.13 +
    1.14 +using class mozilla::dom::indexedDB::Key from "mozilla/dom/indexedDB/Key.h";
    1.15 +using mozilla::dom::indexedDB::IDBCursor::Direction from "mozilla/dom/indexedDB/IDBCursor.h";
    1.16 +
    1.17 +using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
    1.18 +
    1.19 +namespace mozilla {
    1.20 +namespace dom {
    1.21 +namespace indexedDB {
    1.22 +
    1.23 +namespace ipc {
    1.24 +
    1.25 +struct ContinueParams
    1.26 +{
    1.27 +  Key key;
    1.28 +  uint32_t count;
    1.29 +};
    1.30 +
    1.31 +union CursorRequestParams
    1.32 +{
    1.33 +  ContinueParams;
    1.34 +};
    1.35 +
    1.36 +} // namespace ipc
    1.37 +
    1.38 +protocol PIndexedDBCursor
    1.39 +{
    1.40 +  manager PIndexedDBObjectStore or PIndexedDBIndex;
    1.41 +
    1.42 +  manages PIndexedDBRequest;
    1.43 +
    1.44 +parent:
    1.45 +  __delete__();
    1.46 +
    1.47 +  PIndexedDBRequest(CursorRequestParams params);
    1.48 +};
    1.49 +
    1.50 +} // namespace indexedDB
    1.51 +} // namespace dom
    1.52 +} // namespace mozilla

mercurial