| 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/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chromeos/login/auth/auth_status_consumer.h" | 10 #include "chromeos/login/auth/auth_status_consumer.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual bool ShouldShowSettings() = 0; | 30 virtual bool ShouldShowSettings() = 0; |
| 31 virtual bool ShouldLaunchBrowser() = 0; | 31 virtual bool ShouldLaunchBrowser() = 0; |
| 32 virtual bool ShouldSkipPostLoginScreens() = 0; | 32 virtual bool ShouldSkipPostLoginScreens() = 0; |
| 33 virtual bool SupportsEarlyRestartToApplyFlags() = 0; | 33 virtual bool SupportsEarlyRestartToApplyFlags() = 0; |
| 34 virtual bool HandleLoginFailure(const AuthFailure& failure) = 0; | 34 virtual bool HandleLoginFailure(const AuthFailure& failure) = 0; |
| 35 virtual void HandleLoginSuccess(const UserContext& context) = 0; | 35 virtual void HandleLoginSuccess(const UserContext& context) = 0; |
| 36 virtual bool HandlePasswordChangeDetected() = 0; | 36 virtual bool HandlePasswordChangeDetected() = 0; |
| 37 virtual void HandleOAuthTokenStatusChange( | 37 virtual void HandleOAuthTokenStatusChange( |
| 38 user_manager::User::OAuthTokenStatus status) = 0; | 38 user_manager::User::OAuthTokenStatus status) = 0; |
| 39 virtual void LaunchExtraSteps(Profile* profile) = 0; | 39 virtual void LaunchExtraSteps(Profile* profile) = 0; |
| 40 | 40 void SetHost(LoginDisplayHost* host); |
| 41 void set_host(LoginDisplayHost* host) { | |
| 42 host_ = host; | |
| 43 } | |
| 44 | 41 |
| 45 LoginDisplayHost* host() { | 42 LoginDisplayHost* host() { |
| 46 return host_; | 43 return host_; |
| 47 } | 44 } |
| 48 | 45 |
| 49 private: | 46 private: |
| 50 LoginDisplayHost* host_; | 47 LoginDisplayHost* host_; |
| 51 }; | 48 }; |
| 52 | 49 |
| 53 // UserFlow implementation for regular login flow. | 50 // UserFlow implementation for regular login flow. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 return user_id_; | 84 return user_id_; |
| 88 } | 85 } |
| 89 | 86 |
| 90 private: | 87 private: |
| 91 std::string user_id_; | 88 std::string user_id_; |
| 92 }; | 89 }; |
| 93 | 90 |
| 94 } // namespace chromeos | 91 } // namespace chromeos |
| 95 | 92 |
| 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
| OLD | NEW |