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 PBackgroundSessionStorageManager;
7 include PBackgroundSharedTypes;
18 struct SSRemoveItemInfo
28 * Union of SessionStorage mutation types.
39 PrincipalInfo principalInfo;
43 [ChildImpl=virtual, ParentImpl=virtual]
44 sync protocol PBackgroundSessionStorageCache
46 manager PBackgroundSessionStorageManager;
52 * Copy SessionStorageCache from the parent process to the content process.
53 * See SessionStorageManager documentation for more details.
55 * This needs to be synchronous because SessionStorage's semantics are
56 * synchronous. Note that the BackgroundSessionStorageManager in the
57 * PBackground parent already has the answers to this request immediately
58 * available without needing to consult any other threads or perform any I/O.
61 returns (SSSetItemInfo[] aData);
64 * Send changes for SessionStorageCache from a content process to the parent
65 * process so that the data in the parent can be updated to be in sync with
66 * the content. See SessionStorageManager documentation for more details.
68 async Checkpoint(SSWriteInfo[] aWriteInfos);
75 } // namespace mozilla