| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h" | 14 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h" |
| 15 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" | 15 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" |
| 16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 17 #include "components/policy/core/common/cloud/enterprise_metrics.h" | 17 #include "components/policy/core/common/cloud/enterprise_metrics.h" |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 class ScreenManager; |
| 21 class ScreenObserver; | 22 class ScreenObserver; |
| 22 | 23 |
| 23 // The screen implementation that links the enterprise enrollment UI into the | 24 // The screen implementation that links the enterprise enrollment UI into the |
| 24 // OOBE wizard. | 25 // OOBE wizard. |
| 25 class EnrollmentScreen | 26 class EnrollmentScreen |
| 26 : public WizardScreen, | 27 : public WizardScreen, |
| 27 public EnrollmentScreenActor::Controller { | 28 public EnrollmentScreenActor::Controller { |
| 28 public: | 29 public: |
| 29 EnrollmentScreen(ScreenObserver* observer, | 30 EnrollmentScreen(ScreenObserver* observer, |
| 30 EnrollmentScreenActor* actor); | 31 EnrollmentScreenActor* actor); |
| 31 virtual ~EnrollmentScreen(); | 32 virtual ~EnrollmentScreen(); |
| 32 | 33 |
| 34 static EnrollmentScreen* Get(ScreenManager* manager); |
| 35 |
| 33 void SetParameters(EnrollmentScreenActor::EnrollmentMode enrollment_mode, | 36 void SetParameters(EnrollmentScreenActor::EnrollmentMode enrollment_mode, |
| 34 const std::string& management_domain, | 37 const std::string& management_domain, |
| 35 const std::string& enrollment_user, | 38 const std::string& enrollment_user, |
| 36 const std::string& auth_token); | 39 const std::string& auth_token); |
| 37 | 40 |
| 38 // WizardScreen implementation: | 41 // WizardScreen implementation: |
| 39 virtual void PrepareToShow() OVERRIDE; | 42 virtual void PrepareToShow() OVERRIDE; |
| 40 virtual void Show() OVERRIDE; | 43 virtual void Show() OVERRIDE; |
| 41 virtual void Hide() OVERRIDE; | 44 virtual void Hide() OVERRIDE; |
| 42 virtual std::string GetName() const OVERRIDE; | 45 virtual std::string GetName() const OVERRIDE; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 std::string auth_token_; | 103 std::string auth_token_; |
| 101 int lockbox_init_duration_; | 104 int lockbox_init_duration_; |
| 102 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; | 105 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; |
| 103 | 106 |
| 104 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); | 107 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace chromeos | 110 } // namespace chromeos |
| 108 | 111 |
| 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 112 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| OLD | NEW |