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 PIndexedDBDatabase; |
michael@0 | 6 | include protocol PIndexedDBObjectStore; |
michael@0 | 7 | |
michael@0 | 8 | include "mozilla/dom/indexedDB/SerializationHelpers.h"; |
michael@0 | 9 | |
michael@0 | 10 | using struct mozilla::dom::indexedDB::ObjectStoreInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h"; |
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 CreateObjectStoreParams |
michael@0 | 19 | { |
michael@0 | 20 | ObjectStoreInfoGuts info; |
michael@0 | 21 | }; |
michael@0 | 22 | |
michael@0 | 23 | struct GetObjectStoreParams |
michael@0 | 24 | { |
michael@0 | 25 | nsString name; |
michael@0 | 26 | }; |
michael@0 | 27 | |
michael@0 | 28 | union ObjectStoreConstructorParams |
michael@0 | 29 | { |
michael@0 | 30 | CreateObjectStoreParams; |
michael@0 | 31 | GetObjectStoreParams; |
michael@0 | 32 | }; |
michael@0 | 33 | |
michael@0 | 34 | struct CompleteResult |
michael@0 | 35 | { }; |
michael@0 | 36 | |
michael@0 | 37 | struct AbortResult |
michael@0 | 38 | { |
michael@0 | 39 | nsresult errorCode; |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | union CompleteParams |
michael@0 | 43 | { |
michael@0 | 44 | CompleteResult; |
michael@0 | 45 | AbortResult; |
michael@0 | 46 | }; |
michael@0 | 47 | |
michael@0 | 48 | } // namespace ipc |
michael@0 | 49 | |
michael@0 | 50 | protocol PIndexedDBTransaction |
michael@0 | 51 | { |
michael@0 | 52 | manager PIndexedDBDatabase; |
michael@0 | 53 | |
michael@0 | 54 | manages PIndexedDBObjectStore; |
michael@0 | 55 | |
michael@0 | 56 | parent: |
michael@0 | 57 | __delete__(); |
michael@0 | 58 | |
michael@0 | 59 | PIndexedDBObjectStore(ObjectStoreConstructorParams params); |
michael@0 | 60 | |
michael@0 | 61 | Abort(nsresult abortCode); |
michael@0 | 62 | |
michael@0 | 63 | AllRequestsFinished(); |
michael@0 | 64 | |
michael@0 | 65 | DeleteObjectStore(nsString name); |
michael@0 | 66 | |
michael@0 | 67 | child: |
michael@0 | 68 | Complete(CompleteParams params); |
michael@0 | 69 | }; |
michael@0 | 70 | |
michael@0 | 71 | } // namespace indexedDB |
michael@0 | 72 | } // namespace dom |
michael@0 | 73 | } // namespace mozilla |