| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 namespace base { | 29 namespace base { |
| 30 class DictionaryValue; | 30 class DictionaryValue; |
| 31 } | 31 } |
| 32 | 32 |
| 33 class GoogleServiceAuthError { | 33 class GoogleServiceAuthError { |
| 34 public: | 34 public: |
| 35 // | 35 // |
| 36 // These enumerations are referenced by integer value in HTML login code. | 36 // These enumerations are referenced by integer value in HTML login code and |
| 37 // Do not change the numeric values. | 37 // in UMA histograms. Do not change the numeric values. |
| 38 // | 38 // |
| 39 enum State { | 39 enum State { |
| 40 // The user is authenticated. | 40 // The user is authenticated. |
| 41 NONE = 0, | 41 NONE = 0, |
| 42 | 42 |
| 43 // The credentials supplied to GAIA were either invalid, or the locally | 43 // The credentials supplied to GAIA were either invalid, or the locally |
| 44 // cached credentials have expired. | 44 // cached credentials have expired. |
| 45 INVALID_GAIA_CREDENTIALS = 1, | 45 INVALID_GAIA_CREDENTIALS = 1, |
| 46 | 46 |
| 47 // The GAIA user is not authorized to use the service. | 47 // The GAIA user is not authorized to use the service. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 int field_length); | 204 int field_length); |
| 205 | 205 |
| 206 State state_; | 206 State state_; |
| 207 Captcha captcha_; | 207 Captcha captcha_; |
| 208 SecondFactor second_factor_; | 208 SecondFactor second_factor_; |
| 209 int network_error_; | 209 int network_error_; |
| 210 std::string error_message_; | 210 std::string error_message_; |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 #endif // GOOGLE_APIS_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ | 213 #endif // GOOGLE_APIS_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ |
| OLD | NEW |