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_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW
_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW
_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "chrome/browser/chromeos/login/user_flow.h" | 11 #include "chrome/browser/chromeos/login/user_flow.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 // UserFlow implementation for creating new locally managed user. | 15 // UserFlow implementation for creating new locally managed user. |
16 class LocallyManagedUserCreationFlow : public UserFlow { | 16 class LocallyManagedUserCreationFlow : public UserFlow { |
17 public: | 17 public: |
18 LocallyManagedUserCreationFlow(string16 name, | 18 LocallyManagedUserCreationFlow(string16 name, |
19 std::string password); | 19 std::string password); |
20 virtual ~LocallyManagedUserCreationFlow(); | 20 virtual ~LocallyManagedUserCreationFlow(); |
21 | 21 |
22 virtual bool ShouldLaunchBrowser() OVERRIDE; | 22 virtual bool ShouldLaunchBrowser() OVERRIDE; |
23 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; | 23 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; |
24 virtual bool HandleLoginFailure(const LoginFailure& failure, | 24 virtual bool HandleLoginFailure(const LoginFailure& failure, |
25 LoginDisplayHost* host) OVERRIDE; | 25 LoginDisplayHost* host) OVERRIDE; |
26 virtual bool HandlePasswordChangeDetected(LoginDisplayHost* host) OVERRIDE; | 26 virtual bool HandlePasswordChangeDetected(LoginDisplayHost* host) OVERRIDE; |
27 virtual void LaunchExtraSteps(LoginDisplayHost* host) OVERRIDE; | 27 virtual void LaunchExtraSteps(Profile* profile, |
| 28 LoginDisplayHost* host) OVERRIDE; |
28 | 29 |
29 private: | 30 private: |
30 // Display name for user being created. | 31 // Display name for user being created. |
31 string16 name_; | 32 string16 name_; |
32 // Password for user being created. | 33 // Password for user being created. |
33 std::string password_; | 34 std::string password_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationFlow); | 36 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationFlow); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace chromeos | 39 } // namespace chromeos |
39 | 40 |
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_F
LOW_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_F
LOW_H_ |
OLD | NEW |