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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/attestation/platform_verification_flow.h
diff --git a/chrome/browser/chromeos/attestation/platform_verification_flow.h b/chrome/browser/chromeos/attestation/platform_verification_flow.h
index 8ba3b874f74cedc0dc1022ffb5f6f32bba1a72be..95a23e01993ca26e8e7f8d507e69c1c9200fc02e 100644
--- a/chrome/browser/chromeos/attestation/platform_verification_flow.h
+++ b/chrome/browser/chromeos/attestation/platform_verification_flow.h
@@ -31,6 +31,7 @@ namespace chromeos {
class CryptohomeClient;
class UserManager;
+class User;
namespace system {
class StatisticsProvider;
@@ -174,11 +175,13 @@ class PlatformVerificationFlow {
// A callback called when an attestation certificate request operation
// completes. |service_id|, |challenge|, and |callback| are the same as in
- // ChallengePlatformKey. |operation_success| is true iff the certificate
+ // ChallengePlatformKey. |user_id| identifies the user for which the
+ // certificate was requested. |operation_success| is true iff the certificate
// request operation succeeded. |certificate| holds the certificate for the
// platform key on success. If the certificate request was successful, this
// method invokes a request to sign the challenge.
- void OnCertificateReady(const std::string& service_id,
+ void OnCertificateReady(const std::string& user_id,
+ const std::string& service_id,
const std::string& challenge,
const ChallengeCallback& callback,
bool operation_success,
@@ -205,6 +208,11 @@ class PlatformVerificationFlow {
// set explicitly using set_testing_url(), then this value is always returned.
const GURL& GetURL(content::WebContents* web_contents);
+ // Gets the user associated with the given |web_contents|. NULL may be
+ // returned. If |web_contents| is NULL (e.g. during testing), then the
+ // current active user will be returned.
+ User* GetUser(content::WebContents* web_contents);
+
// Checks whether policy or profile settings associated with |web_contents|
// have attestation for content protection explicitly disabled.
bool IsAttestationEnabled(content::WebContents* web_contents);

Powered by Google App Engine
This is Rietveld 408576698