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

Unified Diff: chrome/browser/chromeos/policy/enrollment_handler_chromeos.h

Issue 2186623002: Minimal attestation-based enrollment flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed achuithb's feedback. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
index c1c14edc888365defd11edcf364cdbc2eaafbf51..3b77ae37673de586db225f10624d4c339f2a4a93 100644
--- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
+++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
@@ -28,6 +28,10 @@ class SequencedTaskRunner;
namespace chromeos {
class CryptohomeClient;
+
+namespace attestation {
+class AttestationFlow;
+}
}
namespace cryptohome {
@@ -125,13 +129,16 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
STEP_FINISHED, // Enrollment process finished, no further action.
};
- // Handles the response to the attestation flow requesting a registration
- // certificate.
+ // Handles the response to a request for server-backed state keys.
+ void HandleStateKeysResult(const std::vector<std::string>& state_keys);
+
+ // Starts attestation based enrollment flow.
+ void StartAttestationBasedEnrollmentFlow();
+
+ // Handles the response to a request for a registration certificate.
void HandleRegistrationCertificateResult(
bool success,
const std::string& pem_certificate_chain);
- // Handles the response to a request for server-backed state keys.
- void HandleStateKeysResult(const std::vector<std::string>& state_keys);
// Starts registration if the store is initialized.
void StartRegistration();
@@ -173,6 +180,7 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
std::unique_ptr<CloudPolicyClient> client_;
scoped_refptr<base::SequencedTaskRunner> background_task_runner_;
std::unique_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_;
+ std::unique_ptr<chromeos::attestation::AttestationFlow> attestation_flow_;
EnrollmentConfig enrollment_config_;
std::string auth_token_;
« no previous file with comments | « chrome/browser/chromeos/policy/enrollment_config.h ('k') | chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698