Bug 1831122 [wpt PR 39823] - Update wpt metadata, a=testonly
[gecko.git] / dom / indexedDB / PBackgroundIDBFactory.ipdl
blobef2a88e55bc9abdc24d8dae90ff0f70f4037bd96
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/. */
5 include protocol PBackground;
6 include protocol PBackgroundIDBDatabase;
7 include protocol PBackgroundIDBFactoryRequest;
9 include PBackgroundIDBSharedTypes;
10 include PBackgroundSharedTypes;
12 include "mozilla/dom/quota/SerializationHelpers.h";
13 include "mozilla/dom/indexedDB/ActorsChild.h";
15 using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
17 namespace mozilla {
18 namespace dom {
19 namespace indexedDB {
21 struct CommonFactoryRequestParams
23   DatabaseMetadata metadata;
24   PrincipalInfo principalInfo;
27 struct OpenDatabaseRequestParams
29   CommonFactoryRequestParams commonParams;
32 struct DeleteDatabaseRequestParams
34   CommonFactoryRequestParams commonParams;
37 union FactoryRequestParams
39   OpenDatabaseRequestParams;
40   DeleteDatabaseRequestParams;
43 [ChildImpl="indexedDB::BackgroundFactoryChild", ParentImpl=virtual]
44 sync protocol PBackgroundIDBFactory
46   manager PBackground;
48   manages PBackgroundIDBDatabase;
49   manages PBackgroundIDBFactoryRequest;
51 parent:
52   async DeleteMe();
54   async PBackgroundIDBFactoryRequest(FactoryRequestParams params);
56 child:
57   async __delete__();
59   async PBackgroundIDBDatabase(DatabaseSpec spec,
60                                PBackgroundIDBFactoryRequest request);
63 } // namespace indexedDB
64 } // namespace dom
65 } // namespace mozilla