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