OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chromeos/dbus/cryptohome_client_stub.h" | 5 #include "chromeos/dbus/cryptohome_client_stub.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "crypto/nss_util.h" | 10 #include "crypto/nss_util.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 ReturnAsyncMethodResult(callback, true); | 256 ReturnAsyncMethodResult(callback, true); |
257 } | 257 } |
258 | 258 |
259 void CryptohomeClientStubImpl::AsyncTpmAttestationEnroll( | 259 void CryptohomeClientStubImpl::AsyncTpmAttestationEnroll( |
260 const std::string& pca_response, | 260 const std::string& pca_response, |
261 const AsyncMethodCallback& callback) { | 261 const AsyncMethodCallback& callback) { |
262 ReturnAsyncMethodResult(callback, false); | 262 ReturnAsyncMethodResult(callback, false); |
263 } | 263 } |
264 | 264 |
265 void CryptohomeClientStubImpl::AsyncTpmAttestationCreateCertRequest( | 265 void CryptohomeClientStubImpl::AsyncTpmAttestationCreateCertRequest( |
266 int options, | 266 attestation::AttestationCertificateProfile certificate_profile, |
| 267 const std::string& user_email, |
| 268 const std::string& request_origin, |
267 const AsyncMethodCallback& callback) { | 269 const AsyncMethodCallback& callback) { |
268 ReturnAsyncMethodResult(callback, true); | 270 ReturnAsyncMethodResult(callback, true); |
269 } | 271 } |
270 | 272 |
271 void CryptohomeClientStubImpl::AsyncTpmAttestationFinishCertRequest( | 273 void CryptohomeClientStubImpl::AsyncTpmAttestationFinishCertRequest( |
272 const std::string& pca_response, | 274 const std::string& pca_response, |
273 attestation::AttestationKeyType key_type, | 275 attestation::AttestationKeyType key_type, |
274 const std::string& key_name, | 276 const std::string& key_name, |
275 const AsyncMethodCallback& callback) { | 277 const AsyncMethodCallback& callback) { |
276 ReturnAsyncMethodResult(callback, true); | 278 ReturnAsyncMethodResult(callback, true); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 FROM_HERE, | 375 FROM_HERE, |
374 base::Bind(async_call_status_data_handler_, | 376 base::Bind(async_call_status_data_handler_, |
375 async_call_id_, | 377 async_call_id_, |
376 true, | 378 true, |
377 std::string())); | 379 std::string())); |
378 } | 380 } |
379 ++async_call_id_; | 381 ++async_call_id_; |
380 } | 382 } |
381 | 383 |
382 } // namespace chromeos | 384 } // namespace chromeos |
OLD | NEW |