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

Side by Side Diff: chrome/browser/chromeos/attestation/platform_verification_flow.h

Issue 27044004: Added multi-profile support for attestation on chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added OWNERS Created 7 years, 2 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 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 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // operation should proceed, this method invokes a certificate request. 167 // operation should proceed, this method invokes a certificate request.
168 void OnConsentResponse(content::WebContents* web_contents, 168 void OnConsentResponse(content::WebContents* web_contents,
169 const std::string& service_id, 169 const std::string& service_id,
170 const std::string& challenge, 170 const std::string& challenge,
171 const ChallengeCallback& callback, 171 const ChallengeCallback& callback,
172 ConsentType consent_type, 172 ConsentType consent_type,
173 ConsentResponse consent_response); 173 ConsentResponse consent_response);
174 174
175 // A callback called when an attestation certificate request operation 175 // A callback called when an attestation certificate request operation
176 // completes. |service_id|, |challenge|, and |callback| are the same as in 176 // completes. |service_id|, |challenge|, and |callback| are the same as in
177 // ChallengePlatformKey. |operation_success| is true iff the certificate 177 // ChallengePlatformKey. |user_email| is the canonical email address for
178 // request operation succeeded. |certificate| holds the certificate for the 178 // which the certificate was requested. |operation_success| is true iff the
179 // platform key on success. If the certificate request was successful, this 179 // certificate request operation succeeded. |certificate| holds the
180 // method invokes a request to sign the challenge. 180 // certificate for the platform key on success. If the certificate request
181 void OnCertificateReady(const std::string& service_id, 181 // was successful, this method invokes a request to sign the challenge.
182 void OnCertificateReady(const std::string& user_email,
bartfab (slow) 2013/10/13 16:31:35 We have many different names for the same thing: u
Darren Krahn 2013/10/15 16:49:06 Done.
183 const std::string& service_id,
182 const std::string& challenge, 184 const std::string& challenge,
183 const ChallengeCallback& callback, 185 const ChallengeCallback& callback,
184 bool operation_success, 186 bool operation_success,
185 const std::string& certificate); 187 const std::string& certificate);
186 188
187 // A callback called when a challenge signing request has completed. The 189 // A callback called when a challenge signing request has completed. The
188 // |certificate| is the platform certificate for the key which signed the 190 // |certificate| is the platform certificate for the key which signed the
189 // |challenge|. |callback| is the same as in ChallengePlatformKey. 191 // |challenge|. |callback| is the same as in ChallengePlatformKey.
190 // |operation_success| is true iff the challenge signing operation was 192 // |operation_success| is true iff the challenge signing operation was
191 // successful. If it was successful, |response_data| holds the challenge 193 // successful. If it was successful, |response_data| holds the challenge
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // invalidate the weak pointers before any other members are destroyed. 254 // invalidate the weak pointers before any other members are destroyed.
253 base::WeakPtrFactory<PlatformVerificationFlow> weak_factory_; 255 base::WeakPtrFactory<PlatformVerificationFlow> weak_factory_;
254 256
255 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationFlow); 257 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationFlow);
256 }; 258 };
257 259
258 } // namespace attestation 260 } // namespace attestation
259 } // namespace chromeos 261 } // namespace chromeos
260 262
261 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ 263 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698