chromium/crypto/scoped_lacontext.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CRYPTO_SCOPED_LACONTEXT_H_
#define CRYPTO_SCOPED_LACONTEXT_H_

#if defined(__OBJC__)
#import <LocalAuthentication/LocalAuthentication.h>
#endif  // defined(__OBJC__)

#include <memory>

#include "crypto/crypto_export.h"

namespace crypto {

// ScopedLAContext can hold an `LAContext` and is safe to pass around from C++.
// ScopedLAContext functions as a unique pointer. The UI can create one with an
// authenticated LAContext, then pass it down to the platform.
class CRYPTO_EXPORT ScopedLAContext {};

}  // namespace crypto

#endif  // CRYPTO_SCOPED_LACONTEXT_H_