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
7
include PBackgroundSharedTypes;
8
9
namespace mozilla {
10
namespace dom {
11
12
async protocol PBackgroundLocalStorageCache
13
{
14
manager PBackground;
15
16
parent:
17
async DeleteMe();
18
19
async Notify(nsString documentURI,
20
nsString key,
21
nsString oldValue,
22
nsString newValue);
23
24
child:
25
// The principalInfo and privateBrowsingId could instead be retained by the
26
// LocalStorageCacheChild/LocalStorageCache instead of being re-transmitted.
27
// However, these changes are a temporary optimization intended for uplift,
28
// and this constant factor overhead is very small compared to the upside of
29
// filtering.
30
async Observe(PrincipalInfo principalInfo,
31
PrincipalInfo cachePrincipalInfo,
32
uint32_t privateBrowsingId,
33
nsString documentURI,
34
nsString key,
35
nsString oldValue,
36
nsString newValue);
37
38
async __delete__();
39
};
40
41
} // namespace dom
42
} // namespace mozilla