blob: 424e2bb412fc74c12283a948fa45a6f4b11cd7ac [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// 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_H_
#define COMPONENTS_LOGIN_SECURE_MODULE_UTIL_H_
#include "base/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_H_