|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 include protocol PIndexedDBDatabase; |
|
6 include protocol PIndexedDBObjectStore; |
|
7 |
|
8 include "mozilla/dom/indexedDB/SerializationHelpers.h"; |
|
9 |
|
10 using struct mozilla::dom::indexedDB::ObjectStoreInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h"; |
|
11 |
|
12 namespace mozilla { |
|
13 namespace dom { |
|
14 namespace indexedDB { |
|
15 |
|
16 namespace ipc { |
|
17 |
|
18 struct CreateObjectStoreParams |
|
19 { |
|
20 ObjectStoreInfoGuts info; |
|
21 }; |
|
22 |
|
23 struct GetObjectStoreParams |
|
24 { |
|
25 nsString name; |
|
26 }; |
|
27 |
|
28 union ObjectStoreConstructorParams |
|
29 { |
|
30 CreateObjectStoreParams; |
|
31 GetObjectStoreParams; |
|
32 }; |
|
33 |
|
34 struct CompleteResult |
|
35 { }; |
|
36 |
|
37 struct AbortResult |
|
38 { |
|
39 nsresult errorCode; |
|
40 }; |
|
41 |
|
42 union CompleteParams |
|
43 { |
|
44 CompleteResult; |
|
45 AbortResult; |
|
46 }; |
|
47 |
|
48 } // namespace ipc |
|
49 |
|
50 protocol PIndexedDBTransaction |
|
51 { |
|
52 manager PIndexedDBDatabase; |
|
53 |
|
54 manages PIndexedDBObjectStore; |
|
55 |
|
56 parent: |
|
57 __delete__(); |
|
58 |
|
59 PIndexedDBObjectStore(ObjectStoreConstructorParams params); |
|
60 |
|
61 Abort(nsresult abortCode); |
|
62 |
|
63 AllRequestsFinished(); |
|
64 |
|
65 DeleteObjectStore(nsString name); |
|
66 |
|
67 child: |
|
68 Complete(CompleteParams params); |
|
69 }; |
|
70 |
|
71 } // namespace indexedDB |
|
72 } // namespace dom |
|
73 } // namespace mozilla |