| Index: components/login/secure_module_util.h
|
| diff --git a/components/login/secure_module_util.h b/components/login/secure_module_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3b063b988689a0f8b6308a9fda91877e4a959ed2
|
| --- /dev/null
|
| +++ b/components/login/secure_module_util.h
|
| @@ -0,0 +1,26 @@
|
| +// 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 COMPONENT_LOGIN_SECURE_MODULE_UTIL_H_
|
| +#define COMPONENT_LOGIN_SECURE_MODULE_UTIL_H_
|
| +
|
| +#include "components/login/login_export.h"
|
| +
|
| +namespace login {
|
| +
|
| +enum class SecureModuleUsed {
|
| + UNQUERIED,
|
| + CR50,
|
| + TPM,
|
| +};
|
| +
|
| +SecureModuleUsed LOGIN_EXPORT GetSecureModuleUsed();
|
| +
|
| +// Querys if this machine is using Cr50. Caches the result to avoid to many
|
| +// unnecessary IO calls.
|
| +void LOGIN_EXPORT QuerySecureModuleUsed();
|
| +
|
| +} // namespace login
|
| +
|
| +#endif // COMPONENT_LOGIN_SECURE_MODULE_UTIL_H_
|
|
|