Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / locks / PLockManager.ipdl
blobfdcf7101a9fdfe8acdc09ec0bae3e8cab3d8ae2f
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 PLockRequest;
8 include "mozilla/dom/locks/IPCUtils.h";
10 using mozilla::dom::LockMode from "mozilla/dom/LockManagerBinding.h";
11 using mozilla::dom::LockManagerSnapshot from "mozilla/dom/LockManagerBinding.h";
13 namespace mozilla {
14 namespace dom {
15 namespace locks {
17 struct IPCLockRequest {
18   nsString name;
19   LockMode lockMode;
20   bool ifAvailable;
21   bool steal;
24 protocol PLockManager {
25   manager PBackground;
26   manages PLockRequest;
28  parent:
29   async Query() returns (LockManagerSnapshot snapshot);
31   async PLockRequest(IPCLockRequest aRequest);
33   async __delete__();
36 } // namespace cache
37 } // namespace dom
38 } // namespace mozilla