PLockManager.ipdl (891B)
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 PLockRequest; 7 8 include "mozilla/dom/locks/IPCUtils.h"; 9 10 using mozilla::dom::LockMode from "mozilla/dom/LockManagerBinding.h"; 11 using mozilla::dom::LockManagerSnapshot from "mozilla/dom/LockManagerBinding.h"; 12 13 namespace mozilla { 14 namespace dom { 15 namespace locks { 16 17 struct IPCLockRequest { 18 nsString name; 19 LockMode lockMode; 20 bool ifAvailable; 21 bool steal; 22 }; 23 24 protocol PLockManager { 25 manager PBackground; 26 manages PLockRequest; 27 28 parent: 29 async Query() returns (LockManagerSnapshot snapshot); 30 31 async PLockRequest(IPCLockRequest aRequest); 32 33 async __delete__(); 34 }; 35 36 } // namespace cache 37 } // namespace dom 38 } // namespace mozilla