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

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

Issue 13638022: Added an options parameter to TpmAttestationSignEnterpriseChallenge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 #include "chromeos/cryptohome/async_method_caller.h" 5 #include "chromeos/cryptohome/async_method_caller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 weak_ptr_factory_.GetWeakPtr(), 151 weak_ptr_factory_.GetWeakPtr(),
152 callback, 152 callback,
153 "Couldn't initiate async attestation register key.")); 153 "Couldn't initiate async attestation register key."));
154 } 154 }
155 155
156 virtual void TpmAttestationSignEnterpriseChallenge( 156 virtual void TpmAttestationSignEnterpriseChallenge(
157 chromeos::CryptohomeClient::AttestationKeyType key_type, 157 chromeos::CryptohomeClient::AttestationKeyType key_type,
158 const std::string& key_name, 158 const std::string& key_name,
159 const std::string& domain, 159 const std::string& domain,
160 const std::string& device_id, 160 const std::string& device_id,
161 chromeos::CryptohomeClient::AttestationChallengeOptions options,
161 const std::string& challenge, 162 const std::string& challenge,
162 const DataCallback& callback) OVERRIDE { 163 const DataCallback& callback) OVERRIDE {
163 DBusThreadManager::Get()->GetCryptohomeClient()-> 164 DBusThreadManager::Get()->GetCryptohomeClient()->
164 TpmAttestationSignEnterpriseChallenge( 165 TpmAttestationSignEnterpriseChallenge(
165 key_type, 166 key_type,
166 key_name, 167 key_name,
167 domain, 168 domain,
168 device_id, 169 device_id,
170 options,
169 challenge, 171 challenge,
170 base::Bind( 172 base::Bind(
171 &AsyncMethodCallerImpl::RegisterAsyncDataCallback, 173 &AsyncMethodCallerImpl::RegisterAsyncDataCallback,
172 weak_ptr_factory_.GetWeakPtr(), 174 weak_ptr_factory_.GetWeakPtr(),
173 callback, 175 callback,
174 "Couldn't initiate async attestation enterprise challenge.")); 176 "Couldn't initiate async attestation enterprise challenge."));
175 } 177 }
176 178
177 virtual void TpmAttestationSignSimpleChallenge( 179 virtual void TpmAttestationSignSimpleChallenge(
178 chromeos::CryptohomeClient::AttestationKeyType key_type, 180 chromeos::CryptohomeClient::AttestationKeyType key_type,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 g_async_method_caller = NULL; 338 g_async_method_caller = NULL;
337 VLOG(1) << "AsyncMethodCaller Shutdown completed"; 339 VLOG(1) << "AsyncMethodCaller Shutdown completed";
338 } 340 }
339 341
340 // static 342 // static
341 AsyncMethodCaller* AsyncMethodCaller::GetInstance() { 343 AsyncMethodCaller* AsyncMethodCaller::GetInstance() {
342 return g_async_method_caller; 344 return g_async_method_caller;
343 } 345 }
344 346
345 } // namespace cryptohome 347 } // namespace cryptohome
OLDNEW
« no previous file with comments | « chromeos/cryptohome/async_method_caller.h ('k') | chromeos/cryptohome/mock_async_method_caller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698