Chromium Code Reviews| 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..da1bbc2b6cb068f40ae7eafdde1684234b4c7b98 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,16 @@ class EnterpriseEnrollmentScreen |
| private: |
| void HandleAuthError(const GoogleServiceAuthError& error); |
| + // Starts the Lockbox storage process. The paramter must be a copy and not a |
|
Mattias Nissler (ping if slow)
2011/04/15 18:17:58
s/paramter/parameter/. But the comment seems obsol
pastarmovj
2011/04/15 18:44:49
Removed that it is not true anymore.
|
| + // reference because this function might continue to execute asynchronously. |
| + 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); |
| }; |