Source code

Revision control

Other Tools

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 PBackground;
6
include protocol PBackgroundIDBDatabase;
7
include protocol PBackgroundIDBFactoryRequest;
8
9
include PBackgroundIDBSharedTypes;
10
include PBackgroundSharedTypes;
11
12
include "mozilla/dom/quota/SerializationHelpers.h";
13
14
using struct mozilla::void_t
15
from "ipc/IPCMessageUtils.h";
16
17
namespace mozilla {
18
namespace dom {
19
namespace indexedDB {
20
21
struct CommonFactoryRequestParams
22
{
23
DatabaseMetadata metadata;
24
PrincipalInfo principalInfo;
25
};
26
27
struct OpenDatabaseRequestParams
28
{
29
CommonFactoryRequestParams commonParams;
30
};
31
32
struct DeleteDatabaseRequestParams
33
{
34
CommonFactoryRequestParams commonParams;
35
};
36
37
union FactoryRequestParams
38
{
39
OpenDatabaseRequestParams;
40
DeleteDatabaseRequestParams;
41
};
42
43
sync protocol PBackgroundIDBFactory
44
{
45
manager PBackground;
46
47
manages PBackgroundIDBDatabase;
48
manages PBackgroundIDBFactoryRequest;
49
50
parent:
51
async DeleteMe();
52
53
async PBackgroundIDBFactoryRequest(FactoryRequestParams params);
54
55
async IncrementLoggingRequestSerialNumber();
56
57
child:
58
async __delete__();
59
60
async PBackgroundIDBDatabase(DatabaseSpec spec,
61
PBackgroundIDBFactoryRequest request);
62
};
63
64
} // namespace indexedDB
65
} // namespace dom
66
} // namespace mozilla