tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

LockRequestParent.h (1040B)


      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/. */
      6 
      7 #ifndef DOM_LOCKS_LOCKREQUESTPARENT_H_
      8 #define DOM_LOCKS_LOCKREQUESTPARENT_H_
      9 
     10 #include "mozilla/dom/locks/PLockManager.h"
     11 #include "mozilla/dom/locks/PLockRequestParent.h"
     12 #include "nsISupportsImpl.h"
     13 
     14 namespace mozilla::dom::locks {
     15 
     16 class LockRequestParent final : public PLockRequestParent {
     17 public:
     18  NS_INLINE_DECL_REFCOUNTING(LockRequestParent)
     19 
     20  explicit LockRequestParent(const IPCLockRequest& aRequest)
     21      : mRequest(aRequest) {};
     22 
     23  const IPCLockRequest& Data() { return mRequest; }
     24 
     25  mozilla::ipc::IPCResult Recv__delete__(bool aAborted);
     26 
     27 private:
     28  ~LockRequestParent() = default;
     29 
     30  IPCLockRequest mRequest;
     31 };
     32 
     33 }  // namespace mozilla::dom::locks
     34 
     35 #endif  // DOM_LOCKS_LOCKREQUESTPARENT_H_