Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: components/login/secure_module_util_chromeos.h

Issue 2856683002: cros: Replace "TPM" with "secure module" for machines without TPM. (Closed)
Patch Set: Suffixed chromeos for chromeos compiling of secure_module_*. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/login/BUILD.gn ('k') | components/login/secure_module_util_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/login/secure_module_util_chromeos.h
diff --git a/components/login/secure_module_util_chromeos.h b/components/login/secure_module_util_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..424e2bb412fc74c12283a948fa45a6f4b11cd7ac
--- /dev/null
+++ b/components/login/secure_module_util_chromeos.h
@@ -0,0 +1,29 @@
+// 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_
« no previous file with comments | « components/login/BUILD.gn ('k') | components/login/secure_module_util_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698