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 // A GoogleServiceAuthError is immutable, plain old data representing an | 5 // A GoogleServiceAuthError is immutable, plain old data representing an |
6 // error from an attempt to authenticate with a Google service. | 6 // error from an attempt to authenticate with a Google service. |
7 // It could be from Google Accounts itself, or any service using Google | 7 // It could be from Google Accounts itself, or any service using Google |
8 // Accounts (e.g expired credentials). It may contain additional data such as | 8 // Accounts (e.g expired credentials). It may contain additional data such as |
9 // captcha or OTP challenges. | 9 // captcha or OTP challenges. |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // The GAIA user is not authorized to use the service. | 48 // The GAIA user is not authorized to use the service. |
49 USER_NOT_SIGNED_UP = 2, | 49 USER_NOT_SIGNED_UP = 2, |
50 | 50 |
51 // Could not connect to server to verify credentials. This could be in | 51 // Could not connect to server to verify credentials. This could be in |
52 // response to either failure to connect to GAIA or failure to connect to | 52 // response to either failure to connect to GAIA or failure to connect to |
53 // the service needing GAIA tokens during authentication. | 53 // the service needing GAIA tokens during authentication. |
54 CONNECTION_FAILED = 3, | 54 CONNECTION_FAILED = 3, |
55 | 55 |
56 // The user needs to satisfy a CAPTCHA challenge to unlock their account. | 56 // The user needs to satisfy a CAPTCHA challenge to unlock their account. |
57 // If no other information is available, this can be resolved by visiting | 57 // If no other information is available, this can be resolved by visiting |
58 // https://www.google.com/accounts/DisplayUnlockCaptcha. Otherwise, | 58 // https://accounts.google.com/DisplayUnlockCaptcha. Otherwise, captcha() |
59 // captcha() will provide details about the associated challenge. | 59 // will provide details about the associated challenge. |
60 CAPTCHA_REQUIRED = 4, | 60 CAPTCHA_REQUIRED = 4, |
61 | 61 |
62 // The user account has been deleted. | 62 // The user account has been deleted. |
63 ACCOUNT_DELETED = 5, | 63 ACCOUNT_DELETED = 5, |
64 | 64 |
65 // The user account has been disabled. | 65 // The user account has been disabled. |
66 ACCOUNT_DISABLED = 6, | 66 ACCOUNT_DISABLED = 6, |
67 | 67 |
68 // The service is not available; try again later. | 68 // The service is not available; try again later. |
69 SERVICE_UNAVAILABLE = 7, | 69 SERVICE_UNAVAILABLE = 7, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const std::string& alternate_text, | 193 const std::string& alternate_text, |
194 int field_length); | 194 int field_length); |
195 | 195 |
196 State state_; | 196 State state_; |
197 Captcha captcha_; | 197 Captcha captcha_; |
198 SecondFactor second_factor_; | 198 SecondFactor second_factor_; |
199 int network_error_; | 199 int network_error_; |
200 }; | 200 }; |
201 | 201 |
202 #endif // CHROME_COMMON_NET_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ | 202 #endif // CHROME_COMMON_NET_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ |
OLD | NEW |