| 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_USER_FLOW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 9 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" |
| 10 #include "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/users/user.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 class LoginDisplayHost; | 15 class LoginDisplayHost; |
| 16 // Defines possible variants of user flow upon logging in. | 16 // Defines possible variants of user flow upon logging in. |
| 17 // See UserManager::SetUserFlow for usage contract. | 17 // See UserManager::SetUserFlow for usage contract. |
| 18 class UserFlow { | 18 class UserFlow { |
| 19 public: | 19 public: |
| 20 UserFlow(); | 20 UserFlow(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 explicit ExtendedUserFlow(const std::string& user_id); | 65 explicit ExtendedUserFlow(const std::string& user_id); |
| 66 virtual ~ExtendedUserFlow(); | 66 virtual ~ExtendedUserFlow(); |
| 67 | 67 |
| 68 virtual bool ShouldShowSettings() OVERRIDE; | 68 virtual bool ShouldShowSettings() OVERRIDE; |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 71 // Subclasses can call this method to unregister flow in the next event. | 71 // Subclasses can call this method to unregister flow in the next event. |
| 72 virtual void UnregisterFlowSoon(); | 72 virtual void UnregisterFlowSoon(); |
| 73 std::string user_id() { | 73 std::string user_id() { |
| 74 return user_id_; | 74 return user_id_; |
| 75 }; | 75 } |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 std::string user_id_; | 78 std::string user_id_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace chromeos | 81 } // namespace chromeos |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
| OLD | NEW |