tor-browser

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

WebAuthnTransactionChild.h (1230B)


      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/. */
      6 
      7 #ifndef mozilla_dom_WebAuthnTransactionChild_h
      8 #define mozilla_dom_WebAuthnTransactionChild_h
      9 
     10 #include "mozilla/dom/PWebAuthnTransactionChild.h"
     11 
     12 /*
     13 * Child process IPC implementation for WebAuthn API. Receives results of
     14 * WebAuthn transactions from the parent process, and sends them to the
     15 * WebAuthnHandler either cancel the transaction, or be formatted and relayed to
     16 * content.
     17 */
     18 
     19 namespace mozilla::dom {
     20 
     21 class WebAuthnHandler;
     22 
     23 class WebAuthnTransactionChild final : public PWebAuthnTransactionChild {
     24 public:
     25  NS_INLINE_DECL_REFCOUNTING(WebAuthnTransactionChild, override);
     26 
     27  WebAuthnTransactionChild() = default;
     28 
     29  void ActorDestroy(ActorDestroyReason why) override;
     30 
     31  void SetHandler(WebAuthnHandler* aMananger);
     32 
     33 private:
     34  ~WebAuthnTransactionChild() = default;
     35 
     36  WebAuthnHandler* mHandler;
     37 };
     38 
     39 }  // namespace mozilla::dom
     40 
     41 #endif  // mozilla_dom_WebAuthnTransactionChild_h