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

Unified Diff: chrome/browser/chromeos/login/enterprise_enrollment_screen.h

Issue 6821075: Chrome-side lockbox bindings (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed Ken's nits. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/enterprise_enrollment_screen.h
diff --git a/chrome/browser/chromeos/login/enterprise_enrollment_screen.h b/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
index c987d598ab68e271b4a2a82fe5dadb36cd90b5d1..0734a3ae336c4369c958a518b97f726a7d9f6ea0 100644
--- a/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
+++ b/chrome/browser/chromeos/login/enterprise_enrollment_screen.h
@@ -10,6 +10,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/message_loop.h"
+#include "base/task.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/login/enterprise_enrollment_view.h"
#include "chrome/browser/chromeos/login/view_screen.h"
#include "chrome/browser/policy/cloud_policy_subsystem.h"
@@ -31,6 +34,10 @@ class EnterpriseEnrollmentController {
// Closes the confirmation window.
virtual void CloseConfirmation() = 0;
+
+ // Returns whether the GAIA login should be prepolutated with an user and if
+ // yes which one.
+ virtual bool GetInitialUser(std::string* user) = 0;
};
// The screen implementation that links the enterprise enrollment UI into the
@@ -51,6 +58,7 @@ class EnterpriseEnrollmentScreen
const std::string& access_code) OVERRIDE;
virtual void CancelEnrollment() OVERRIDE;
virtual void CloseConfirmation() OVERRIDE;
+ virtual bool GetInitialUser(std::string* user) OVERRIDE;
// GaiaAuthConsumer implementation:
virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE;
@@ -75,10 +83,15 @@ class EnterpriseEnrollmentScreen
private:
void HandleAuthError(const GoogleServiceAuthError& error);
+ // Starts the Lockbox storage process.
+ void WriteInstallAttributesData(const ClientLoginResult& result);
+
scoped_ptr<GaiaAuthFetcher> auth_fetcher_;
std::string user_;
std::string captcha_token_;
scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> registrar_;
+ ScopedRunnableMethodFactory<EnterpriseEnrollmentScreen>
+ runnable_method_factory_;
DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentScreen);
};
« no previous file with comments | « chrome/browser/chromeos/cros/mock_cryptohome_library.h ('k') | chrome/browser/chromeos/login/enterprise_enrollment_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698