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 PBackgroundIDBFactory;
6
include protocol PBackgroundIDBDatabase;
7
8
include PBackgroundSharedTypes;
9
10
namespace mozilla {
11
namespace dom {
12
namespace indexedDB {
13
14
struct OpenDatabaseRequestResponse
15
{
16
PBackgroundIDBDatabase database;
17
};
18
19
struct DeleteDatabaseRequestResponse
20
{
21
uint64_t previousVersion;
22
};
23
24
union FactoryRequestResponse
25
{
26
nsresult;
27
OpenDatabaseRequestResponse;
28
DeleteDatabaseRequestResponse;
29
};
30
31
protocol PBackgroundIDBFactoryRequest
32
{
33
manager PBackgroundIDBFactory;
34
35
child:
36
async __delete__(FactoryRequestResponse response);
37
38
async PermissionChallenge(PrincipalInfo principalInfo);
39
40
async Blocked(uint64_t currentVersion);
41
42
parent:
43
async PermissionRetry();
44
};
45
46
} // namespace indexedDB
47
} // namespace dom
48
} // namespace mozilla