| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const std::string& password, | 91 const std::string& password, |
| 92 const std::string& auth_code, | 92 const std::string& auth_code, |
| 93 bool using_saml, | 93 bool using_saml, |
| 94 const std::string& gaps_cookie); | 94 const std::string& gaps_cookie); |
| 95 void HandleCompleteAuthenticationAuthCodeOnly(const std::string& auth_code); | 95 void HandleCompleteAuthenticationAuthCodeOnly(const std::string& auth_code); |
| 96 void HandleCompleteLogin(const std::string& gaia_id, | 96 void HandleCompleteLogin(const std::string& gaia_id, |
| 97 const std::string& typed_email, | 97 const std::string& typed_email, |
| 98 const std::string& password, | 98 const std::string& password, |
| 99 bool using_saml); | 99 bool using_saml); |
| 100 | 100 |
| 101 void HandleCompleteAdAuthentication(const std::string& user_name, | 101 void HandleCompleteAdAuthentication(const std::string& username, |
| 102 const std::string& password); | 102 const std::string& password); |
| 103 | 103 |
| 104 void HandleCompleteAdPasswordChange(const std::string& username, |
| 105 const std::string& old_password, |
| 106 const std::string& new_password); |
| 107 |
| 104 void HandleUsingSAMLAPI(); | 108 void HandleUsingSAMLAPI(); |
| 105 void HandleScrapedPasswordCount(int password_count); | 109 void HandleScrapedPasswordCount(int password_count); |
| 106 void HandleScrapedPasswordVerificationFailed(); | 110 void HandleScrapedPasswordVerificationFailed(); |
| 107 | 111 |
| 108 void HandleGaiaUIReady(); | 112 void HandleGaiaUIReady(); |
| 109 | 113 |
| 110 void HandleToggleEasyBootstrap(); | 114 void HandleToggleEasyBootstrap(); |
| 111 | 115 |
| 112 void HandleIdentifierEntered(const std::string& account_identifier); | 116 void HandleIdentifierEntered(const std::string& account_identifier); |
| 113 | 117 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 132 void StartClearingDnsCache(); | 136 void StartClearingDnsCache(); |
| 133 void OnDnsCleared(); | 137 void OnDnsCleared(); |
| 134 | 138 |
| 135 // Callback for AuthPolicyClient. | 139 // Callback for AuthPolicyClient. |
| 136 void DoAdAuth(const std::string& username, | 140 void DoAdAuth(const std::string& username, |
| 137 const Key& key, | 141 const Key& key, |
| 138 authpolicy::ErrorType error, | 142 authpolicy::ErrorType error, |
| 139 const std::string& uid); | 143 const std::string& uid); |
| 140 | 144 |
| 141 // Callback for writing password into pipe. | 145 // Callback for writing password into pipe. |
| 142 void OnPasswordPipeReady(const std::string& user_name, | 146 void OnPasswordPipeReady(const std::string& username, |
| 143 const Key& key, | 147 const Key& key, |
| 144 base::ScopedFD password_fd); | 148 base::ScopedFD password_fd); |
| 145 | 149 |
| 146 // Show sign-in screen for the given credentials. | 150 // Show sign-in screen for the given credentials. |
| 147 void ShowSigninScreenForTest(const std::string& username, | 151 void ShowSigninScreenForTest(const std::string& username, |
| 148 const std::string& password); | 152 const std::string& password); |
| 149 // Attempts login for test. | 153 // Attempts login for test. |
| 150 void SubmitLoginFormForTest(); | 154 void SubmitLoginFormForTest(); |
| 151 | 155 |
| 152 // Updates the member variable and UMA histogram indicating whether the | 156 // Updates the member variable and UMA histogram indicating whether the |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 bool auth_extension_being_loaded_ = false; | 272 bool auth_extension_being_loaded_ = false; |
| 269 | 273 |
| 270 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 274 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 271 | 275 |
| 272 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 276 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 273 }; | 277 }; |
| 274 | 278 |
| 275 } // namespace chromeos | 279 } // namespace chromeos |
| 276 | 280 |
| 277 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 281 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |