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

Side by Side Diff: chromeos/cryptohome/async_method_caller.h

Issue 20873002: Added support for the content protection profile to AttestationFlow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ 5 #ifndef CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_
6 #define CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ 6 #define CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual void AsyncTpmAttestationCreateEnrollRequest( 98 virtual void AsyncTpmAttestationCreateEnrollRequest(
99 const DataCallback& callback) = 0; 99 const DataCallback& callback) = 0;
100 100
101 // Asks cryptohomed to asynchronously finish an attestation enrollment. 101 // Asks cryptohomed to asynchronously finish an attestation enrollment.
102 // |pca_response| is the response to the enrollment request emitted by the 102 // |pca_response| is the response to the enrollment request emitted by the
103 // Privacy CA. 103 // Privacy CA.
104 virtual void AsyncTpmAttestationEnroll(const std::string& pca_response, 104 virtual void AsyncTpmAttestationEnroll(const std::string& pca_response,
105 const Callback& callback) = 0; 105 const Callback& callback) = 0;
106 106
107 // Asks cryptohomed to asynchronously create an attestation certificate 107 // Asks cryptohomed to asynchronously create an attestation certificate
108 // request according to |options|, which is a combination of 108 // request according to |certificate_profile|. Some profiles require that the
109 // attestation::AttestationCertificateOptions. On success the data sent to 109 // |user_email| of the currently active user and an identifier of the
110 // |callback| is a request to be sent to the Privacy CA. 110 // |request_origin| be provided. On success the data sent to |callback| is a
111 // request to be sent to the Privacy CA. The |request_origin| may be sent to
112 // the Privacy CA but the |user_email| will never be sent.
111 virtual void AsyncTpmAttestationCreateCertRequest( 113 virtual void AsyncTpmAttestationCreateCertRequest(
112 int options, 114 int certificate_profile,
115 const std::string& user_email,
116 const std::string& request_origin,
113 const DataCallback& callback) = 0; 117 const DataCallback& callback) = 0;
114 118
115 // Asks cryptohomed to asynchronously finish an attestation certificate 119 // Asks cryptohomed to asynchronously finish an attestation certificate
116 // request. On success the data sent to |callback| is a certificate chain 120 // request. On success the data sent to |callback| is a certificate chain
117 // in PEM format. |pca_response| is the response to the certificate request 121 // in PEM format. |pca_response| is the response to the certificate request
118 // emitted by the Privacy CA. |key_type| determines whether the certified key 122 // emitted by the Privacy CA. |key_type| determines whether the certified key
119 // is to be associated with the current user. |key_name| is a name for the 123 // is to be associated with the current user. |key_name| is a name for the
120 // key. 124 // key.
121 virtual void AsyncTpmAttestationFinishCertRequest( 125 virtual void AsyncTpmAttestationFinishCertRequest(
122 const std::string& pca_response, 126 const std::string& pca_response,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 static void Shutdown(); 179 static void Shutdown();
176 180
177 // Returns a pointer to the global AsyncMethodCaller instance. 181 // Returns a pointer to the global AsyncMethodCaller instance.
178 // Initialize() should already have been called. 182 // Initialize() should already have been called.
179 static AsyncMethodCaller* GetInstance(); 183 static AsyncMethodCaller* GetInstance();
180 }; 184 };
181 185
182 } // namespace cryptohome 186 } // namespace cryptohome
183 187
184 #endif // CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_ 188 #endif // CHROMEOS_CRYPTOHOME_ASYNC_METHOD_CALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698