1 // Copyright 2017 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_LOGIN_SECURE_MODULE_UTIL_CHROMEOS_H_
6 #define COMPONENTS_LOGIN_SECURE_MODULE_UTIL_CHROMEOS_H_
8 #include "base/functional/callback.h"
9 #include "components/login/login_export.h"
13 enum class SecureModuleUsed {
19 // Receives one argument which contains the type of secure module we are using.
20 using GetSecureModuleUsedCallback =
21 base::OnceCallback<void(SecureModuleUsed secure_module)>;
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);
29 #endif // COMPONENTS_LOGIN_SECURE_MODULE_UTIL_CHROMEOS_H_