| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // The service is not available; try again later. | 67 // The service is not available; try again later. |
| 68 SERVICE_UNAVAILABLE = 7, | 68 SERVICE_UNAVAILABLE = 7, |
| 69 | 69 |
| 70 // The password is valid but we need two factor to get a token. | 70 // The password is valid but we need two factor to get a token. |
| 71 TWO_FACTOR = 8, | 71 TWO_FACTOR = 8, |
| 72 | 72 |
| 73 // The requestor of the authentication step cancelled the request | 73 // The requestor of the authentication step cancelled the request |
| 74 // prior to completion. | 74 // prior to completion. |
| 75 REQUEST_CANCELED = 9, | 75 REQUEST_CANCELED = 9, |
| 76 | 76 |
| 77 // The user has provided a HOSTED account, when this service requires | 77 // HOSTED accounts are deprecated; left in enumeration to match |
| 78 // a GOOGLE account. | 78 // GoogleServiceAuthError enum in histograms.xml. |
| 79 HOSTED_NOT_ALLOWED = 10, | 79 HOSTED_NOT_ALLOWED_DEPRECATED = 10, |
| 80 | 80 |
| 81 // Indicates the service responded to a request, but we cannot | 81 // Indicates the service responded to a request, but we cannot |
| 82 // interpret the response. | 82 // interpret the response. |
| 83 UNEXPECTED_SERVICE_RESPONSE = 11, | 83 UNEXPECTED_SERVICE_RESPONSE = 11, |
| 84 | 84 |
| 85 // Indicates the service responded and response carried details of the | 85 // Indicates the service responded and response carried details of the |
| 86 // application error. | 86 // application error. |
| 87 SERVICE_ERROR = 12, | 87 SERVICE_ERROR = 12, |
| 88 | 88 |
| 89 // The password is valid but web login is required to get a token. | 89 // The password is valid but web login is required to get a token. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 int image_height); | 210 int image_height); |
| 211 | 211 |
| 212 State state_; | 212 State state_; |
| 213 Captcha captcha_; | 213 Captcha captcha_; |
| 214 SecondFactor second_factor_; | 214 SecondFactor second_factor_; |
| 215 int network_error_; | 215 int network_error_; |
| 216 std::string error_message_; | 216 std::string error_message_; |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 #endif // GOOGLE_APIS_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ | 219 #endif // GOOGLE_APIS_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ |
| OLD | NEW |