Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/WebAuthnTransactionParent.h
Line
Count
Source (jump to first uncovered line)
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_WebAuthnTransactionParent_h
8
#define mozilla_dom_WebAuthnTransactionParent_h
9
10
#include "mozilla/dom/PWebAuthnTransactionParent.h"
11
12
/*
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.
16
 */
17
18
namespace mozilla {
19
namespace dom {
20
21
class WebAuthnTransactionParent final : public PWebAuthnTransactionParent
22
{
23
public:
24
  NS_INLINE_DECL_REFCOUNTING(WebAuthnTransactionParent);
25
0
  WebAuthnTransactionParent() = default;
26
27
  virtual mozilla::ipc::IPCResult
28
  RecvRequestRegister(const uint64_t& aTransactionId,
29
                      const WebAuthnMakeCredentialInfo& aTransactionInfo) override;
30
31
  virtual mozilla::ipc::IPCResult
32
  RecvRequestSign(const uint64_t& aTransactionId,
33
                  const WebAuthnGetAssertionInfo& aTransactionInfo) override;
34
35
  virtual mozilla::ipc::IPCResult
36
  RecvRequestCancel(const uint64_t& aTransactionId) override;
37
38
  virtual mozilla::ipc::IPCResult
39
  RecvDestroyMe() override;
40
41
  virtual void ActorDestroy(ActorDestroyReason aWhy) override;
42
43
private:
44
  ~WebAuthnTransactionParent() = default;
45
};
46
47
}
48
}
49
50
#endif //mozilla_dom_WebAuthnTransactionParent_h