blob: 6e643f5cbe54797f0670e4027e7f00e963d1cf23 [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_LOGIN_SECURE_MODULE_UTIL_CHROMEOS_H_
#define COMPONENTS_LOGIN_SECURE_MODULE_UTIL_CHROMEOS_H_
#include "base/functional/callback.h"
#include "components/login/login_export.h"
namespace login {
enum class SecureModuleUsed {
UNQUERIED,
CR50,
TPM,
};
// Receives one argument which contains the type of secure module we are using.
using GetSecureModuleUsedCallback =
base::OnceCallback<void(SecureModuleUsed secure_module)>;
// Gets the secure module by checking for certain files on the filesystem or in
// the cache. |callback| is called with type of secure module we are using.
void LOGIN_EXPORT GetSecureModuleUsed(GetSecureModuleUsedCallback callback);
} // namespace login
#endif // COMPONENTS_LOGIN_SECURE_MODULE_UTIL_CHROMEOS_H_