1 // Copyright 2022 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 CRYPTO_UNEXPORTABLE_KEY_METRICS_H_
6 #define CRYPTO_UNEXPORTABLE_KEY_METRICS_H_
8 #include "crypto/crypto_export.h"
12 // Records UMA metrics of TPM availability, latency and successful usage.
13 // Does the work on a new background task.
14 CRYPTO_EXPORT void MaybeMeasureTpmOperations();
16 // internal namespace to be used by tests only
19 // Note that values here are used in a recorded histogram. Don't change
20 // the values of existing members.
21 enum class TPMSupport {
28 // Note that values here are used in a recorded histogram. Don't change
29 // the values of existing members.
38 // Exported for testing
39 CRYPTO_EXPORT void MeasureTpmOperationsInternalForTesting();
40 } // namespace internal
44 #endif // CRYPTO_UNEXPORTABLE_KEY_METRICS_H_