Bug 1856663 - Add more chunks for Android mochitest-plain. r=jmaher,taskgraph-reviewe...
[gecko.git] / dom / webauthn / AuthrsTransport.cpp
blob5c2c38371b74dea574ca5ff7f3fb1fa7cd982773
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "AuthrsTransport.h"
6 #include "AuthrsBridge_ffi.h"
7 #include "nsIWebAuthnController.h"
8 #include "nsCOMPtr.h"
10 namespace mozilla::dom {
12 already_AddRefed<nsIWebAuthnTransport> NewAuthrsTransport() {
13 nsCOMPtr<nsIWebAuthnTransport> transport;
14 nsresult rv = authrs_transport_constructor(getter_AddRefs(transport));
15 if (NS_WARN_IF(NS_FAILED(rv))) {
16 return nullptr;
18 return transport.forget();
21 } // namespace mozilla::dom