Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | include protocol PBlob; |
michael@0 | 6 | include protocol PIndexedDBCursor; |
michael@0 | 7 | include protocol PIndexedDBObjectStore; |
michael@0 | 8 | include protocol PIndexedDBRequest; |
michael@0 | 9 | |
michael@0 | 10 | include IndexedDBParams; |
michael@0 | 11 | |
michael@0 | 12 | namespace mozilla { |
michael@0 | 13 | namespace dom { |
michael@0 | 14 | namespace indexedDB { |
michael@0 | 15 | |
michael@0 | 16 | namespace ipc { |
michael@0 | 17 | |
michael@0 | 18 | struct GetKeyParams |
michael@0 | 19 | { |
michael@0 | 20 | KeyRange keyRange; |
michael@0 | 21 | }; |
michael@0 | 22 | |
michael@0 | 23 | union IndexRequestParams |
michael@0 | 24 | { |
michael@0 | 25 | GetParams; |
michael@0 | 26 | GetKeyParams; |
michael@0 | 27 | GetAllParams; |
michael@0 | 28 | GetAllKeysParams; |
michael@0 | 29 | CountParams; |
michael@0 | 30 | OpenCursorParams; |
michael@0 | 31 | OpenKeyCursorParams; |
michael@0 | 32 | }; |
michael@0 | 33 | |
michael@0 | 34 | struct IndexCursorConstructorParams |
michael@0 | 35 | { |
michael@0 | 36 | PIndexedDBRequest request; |
michael@0 | 37 | Direction direction; |
michael@0 | 38 | Key key; |
michael@0 | 39 | Key objectKey; |
michael@0 | 40 | OptionalStructuredCloneReadInfo optionalCloneInfo; |
michael@0 | 41 | PBlob[] blobs; |
michael@0 | 42 | }; |
michael@0 | 43 | |
michael@0 | 44 | } // namespace ipc |
michael@0 | 45 | |
michael@0 | 46 | protocol PIndexedDBIndex |
michael@0 | 47 | { |
michael@0 | 48 | manager PIndexedDBObjectStore; |
michael@0 | 49 | |
michael@0 | 50 | manages PIndexedDBCursor; |
michael@0 | 51 | manages PIndexedDBRequest; |
michael@0 | 52 | |
michael@0 | 53 | parent: |
michael@0 | 54 | __delete__(); |
michael@0 | 55 | |
michael@0 | 56 | PIndexedDBRequest(IndexRequestParams params); |
michael@0 | 57 | |
michael@0 | 58 | child: |
michael@0 | 59 | PIndexedDBCursor(IndexCursorConstructorParams params); |
michael@0 | 60 | }; |
michael@0 | 61 | |
michael@0 | 62 | } // namespace indexedDB |
michael@0 | 63 | } // namespace dom |
michael@0 | 64 | } // namespace mozilla |