| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_LOGIN_SECURE_MODULE_UTIL_H_ |
| 6 #define COMPONENTS_LOGIN_SECURE_MODULE_UTIL_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "components/login/login_export.h" |
| 10 |
| 11 namespace login { |
| 12 |
| 13 enum class SecureModuleUsed { |
| 14 UNQUERIED, |
| 15 CR50, |
| 16 TPM, |
| 17 }; |
| 18 |
| 19 // Receives one argument which contains the type of secure module we are using. |
| 20 using GetSecureModuleUsedCallback = |
| 21 base::OnceCallback<void(SecureModuleUsed secure_module)>; |
| 22 |
| 23 // Gets the secure module by checking for certain files on the filesystem or in |
| 24 // the cache. |callback| is called with type of secure module we are using. |
| 25 void LOGIN_EXPORT GetSecureModuleUsed(GetSecureModuleUsedCallback callback); |
| 26 |
| 27 } // namespace login |
| 28 |
| 29 #endif // COMPONENTS_LOGIN_SECURE_MODULE_UTIL_H_ |
| OLD | NEW |