Bug 1856663 - Add more chunks for Android mochitest-plain. r=jmaher,taskgraph-reviewe...
[gecko.git] / dom / webauthn / WebAuthnTransactionParent.h
blob45b466551bf920328d86f2a7e93e5f141e1db7ea
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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_WebAuthnTransactionParent_h
8 #define mozilla_dom_WebAuthnTransactionParent_h
10 #include "mozilla/dom/PWebAuthnTransactionParent.h"
13 * Parent process IPC implementation for WebAuthn and U2F API. Receives
14 * authentication data to be either registered or signed by a key, passes
15 * information to U2FTokenManager.
18 namespace mozilla::dom {
20 class WebAuthnTransactionParent final : public PWebAuthnTransactionParent {
21 public:
22 NS_INLINE_DECL_REFCOUNTING(WebAuthnTransactionParent);
23 WebAuthnTransactionParent() = default;
25 mozilla::ipc::IPCResult RecvRequestRegister(
26 const uint64_t& aTransactionId,
27 const WebAuthnMakeCredentialInfo& aTransactionInfo);
29 mozilla::ipc::IPCResult RecvRequestSign(
30 const uint64_t& aTransactionId,
31 const WebAuthnGetAssertionInfo& aTransactionInfo);
33 mozilla::ipc::IPCResult RecvRequestCancel(
34 const Tainted<uint64_t>& aTransactionId);
36 mozilla::ipc::IPCResult RecvDestroyMe();
38 virtual void ActorDestroy(ActorDestroyReason aWhy) override;
40 private:
41 ~WebAuthnTransactionParent() = default;
44 } // namespace mozilla::dom
46 #endif // mozilla_dom_WebAuthnTransactionParent_h