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 const std::string& repeat_new_password); |
| 108 |
104 void HandleUsingSAMLAPI(); | 109 void HandleUsingSAMLAPI(); |
105 void HandleScrapedPasswordCount(int password_count); | 110 void HandleScrapedPasswordCount(int password_count); |
106 void HandleScrapedPasswordVerificationFailed(); | 111 void HandleScrapedPasswordVerificationFailed(); |
107 | 112 |
108 void HandleGaiaUIReady(); | 113 void HandleGaiaUIReady(); |
109 | 114 |
110 void HandleToggleEasyBootstrap(); | 115 void HandleToggleEasyBootstrap(); |
111 | 116 |
112 void HandleIdentifierEntered(const std::string& account_identifier); | 117 void HandleIdentifierEntered(const std::string& account_identifier); |
113 | 118 |
(...skipping 18 matching lines...) Expand all Loading... |
132 void StartClearingDnsCache(); | 137 void StartClearingDnsCache(); |
133 void OnDnsCleared(); | 138 void OnDnsCleared(); |
134 | 139 |
135 // Callback for AuthPolicyClient. | 140 // Callback for AuthPolicyClient. |
136 void DoAdAuth(const std::string& username, | 141 void DoAdAuth(const std::string& username, |
137 const Key& key, | 142 const Key& key, |
138 authpolicy::ErrorType error, | 143 authpolicy::ErrorType error, |
139 const std::string& uid); | 144 const std::string& uid); |
140 | 145 |
141 // Callback for writing password into pipe. | 146 // Callback for writing password into pipe. |
142 void OnPasswordPipeReady(const std::string& user_name, | 147 void OnPasswordPipeReady(const std::string& username, |
143 const Key& key, | 148 const Key& key, |
144 base::ScopedFD password_fd); | 149 base::ScopedFD password_fd); |
145 | 150 |
146 // Show sign-in screen for the given credentials. | 151 // Show sign-in screen for the given credentials. |
147 void ShowSigninScreenForTest(const std::string& username, | 152 void ShowSigninScreenForTest(const std::string& username, |
148 const std::string& password); | 153 const std::string& password); |
149 // Attempts login for test. | 154 // Attempts login for test. |
150 void SubmitLoginFormForTest(); | 155 void SubmitLoginFormForTest(); |
151 | 156 |
152 // Updates the member variable and UMA histogram indicating whether the | 157 // 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; | 273 bool auth_extension_being_loaded_ = false; |
269 | 274 |
270 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 275 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
271 | 276 |
272 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 277 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
273 }; | 278 }; |
274 | 279 |
275 } // namespace chromeos | 280 } // namespace chromeos |
276 | 281 |
277 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 282 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
OLD | NEW |