Bug 1789304 [wpt PR 35786] - interactionId for first input - add wpt for tap, a=testonly
[gecko.git] / dom / locks / LockRequestParent.h
blobcdb4fc1127404067e535b8250e99a58e70451641
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DOM_LOCKS_LOCKREQUESTPARENT_H_
8 #define DOM_LOCKS_LOCKREQUESTPARENT_H_
10 #include "mozilla/dom/locks/PLockManager.h"
11 #include "mozilla/dom/locks/PLockRequestParent.h"
12 #include "nsISupportsImpl.h"
14 namespace mozilla::dom::locks {
16 class LockRequestParent final : public PLockRequestParent {
17 public:
18 NS_INLINE_DECL_REFCOUNTING(LockRequestParent)
20 explicit LockRequestParent(const IPCLockRequest& aRequest)
21 : mRequest(aRequest){};
23 const IPCLockRequest& Data() { return mRequest; }
25 mozilla::ipc::IPCResult Recv__delete__(bool aAborted);
27 private:
28 ~LockRequestParent() = default;
30 IPCLockRequest mRequest;
33 } // namespace mozilla::dom::locks
35 #endif // DOM_LOCKS_LOCKREQUESTPARENT_H_