Chromium Code Reviews| Index: chromeos/attestation/attestation_flow.h |
| diff --git a/chromeos/attestation/attestation_flow.h b/chromeos/attestation/attestation_flow.h |
| index be3fcdf0e61d4a4b0a259e89b8fd7517f1e43cc8..7dd02a6bb2293fdc17300a9287dd672809483624 100644 |
| --- a/chromeos/attestation/attestation_flow.h |
| +++ b/chromeos/attestation/attestation_flow.h |
| @@ -57,6 +57,25 @@ class CHROMEOS_EXPORT AttestationFlow { |
| const std::string& pem_certificate_chain)> |
| CertificateCallback; |
| + // Returns the attestation key type for a given |certificate_profile|. |
| + // |
| + // Parameters |
| + // certificate_profile - Specifies what kind of certificate the key is for. |
|
pastarmovj
2016/08/23 08:46:02
nit: s/certificate_profile/profile/...or rename th
The one and only Dr. Crash
2016/08/23 15:05:10
Done.
|
| + static AttestationKeyType GetKeyTypeForProfile( |
| + AttestationCertificateProfile profile); |
| + // Returns the name of the key for a given certificate profile. The |
|
pastarmovj
2016/08/23 08:46:02
Add a new line before this one.
The one and only Dr. Crash
2016/08/23 15:05:10
Done.
|
| + // |request_origin| parameter is for PROFILE_CONTENT_PROTECTION_CERTIFICATE |
| + // profiles and is ignored for other profiles. |
| + // |
| + // Parameters |
| + // certificate_profile - Specifies what kind of certificate the key is for. |
| + // request_origin - For content protection profiles, certificate requests |
| + // are origin-specific. This string must uniquely identify |
| + // the origin of the request. |
| + static std::string GetKeyNameForProfile( |
| + AttestationCertificateProfile certificate_profile, |
| + const std::string& request_origin); |
| + |
| AttestationFlow(cryptohome::AsyncMethodCaller* async_caller, |
| CryptohomeClient* cryptohome_client, |
| std::unique_ptr<ServerProxy> server_proxy); |