| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EASY_UNLOCK_BOOTSTRAP_USER_FLOW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_FLOW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_FLOW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_FLOW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/chromeos/login/user_flow.h" | 10 #include "chrome/browser/chromeos/login/user_flow.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void StartAutoPairing(); | 35 void StartAutoPairing(); |
| 36 void SetAutoPairingResult(bool success, const std::string& error_message); | 36 void SetAutoPairingResult(bool success, const std::string& error_message); |
| 37 | 37 |
| 38 void OnKeysRefreshed(bool success); | 38 void OnKeysRefreshed(bool success); |
| 39 void RemoveBootstrapRandomKey(); | 39 void RemoveBootstrapRandomKey(); |
| 40 void OnBootstrapRandomKeyRemoved(); | 40 void OnBootstrapRandomKeyRemoved(); |
| 41 void Finish(); | 41 void Finish(); |
| 42 | 42 |
| 43 // chromeos::ExtendedUserFlow | 43 // chromeos::ExtendedUserFlow |
| 44 bool CanLockScreen() override; | 44 bool CanLockScreen() override; |
| 45 bool CanStartArc() override; |
| 45 bool ShouldLaunchBrowser() override; | 46 bool ShouldLaunchBrowser() override; |
| 46 bool ShouldSkipPostLoginScreens() override; | 47 bool ShouldSkipPostLoginScreens() override; |
| 47 bool HandleLoginFailure(const chromeos::AuthFailure& failure) override; | 48 bool HandleLoginFailure(const chromeos::AuthFailure& failure) override; |
| 48 void HandleLoginSuccess(const chromeos::UserContext& context) override; | 49 void HandleLoginSuccess(const chromeos::UserContext& context) override; |
| 49 bool HandlePasswordChangeDetected() override; | 50 bool HandlePasswordChangeDetected() override; |
| 50 void HandleOAuthTokenStatusChange( | 51 void HandleOAuthTokenStatusChange( |
| 51 user_manager::User::OAuthTokenStatus status) override; | 52 user_manager::User::OAuthTokenStatus status) override; |
| 52 void LaunchExtraSteps(Profile* user_profile) override; | 53 void LaunchExtraSteps(Profile* user_profile) override; |
| 53 bool SupportsEarlyRestartToApplyFlags() override; | 54 bool SupportsEarlyRestartToApplyFlags() override; |
| 54 | 55 |
| 55 // ExtendedAuthenticator::NewAuthStatusConsumer | 56 // ExtendedAuthenticator::NewAuthStatusConsumer |
| 56 void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) override; | 57 void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) override; |
| 57 | 58 |
| 58 UserContext user_context_; | 59 UserContext user_context_; |
| 59 const bool is_new_account_; | 60 const bool is_new_account_; |
| 60 | 61 |
| 61 bool finished_; | 62 bool finished_; |
| 62 Profile* user_profile_; | 63 Profile* user_profile_; |
| 63 | 64 |
| 64 base::WeakPtrFactory<BootstrapUserFlow> weak_ptr_factory_; | 65 base::WeakPtrFactory<BootstrapUserFlow> weak_ptr_factory_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(BootstrapUserFlow); | 67 DISALLOW_COPY_AND_ASSIGN(BootstrapUserFlow); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace chromeos | 70 } // namespace chromeos |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_FLOW_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_FLOW_H_ |
| OLD | NEW |