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 #include "google_apis/gaia/google_service_auth_error.h" | 5 #include "google_apis/gaia/google_service_auth_error.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 | 15 |
16 GoogleServiceAuthError::Captcha::Captcha() : image_width(0), image_height(0) { | 16 GoogleServiceAuthError::Captcha::Captcha() : image_width(0), image_height(0) { |
17 } | 17 } |
18 | 18 |
19 GoogleServiceAuthError::Captcha::Captcha( | 19 GoogleServiceAuthError::Captcha::Captcha( |
20 const std::string& token, const GURL& audio, const GURL& img, | 20 const std::string& token, const GURL& audio, const GURL& img, |
21 const GURL& unlock, int width, int height) | 21 const GURL& unlock, int width, int height) |
22 : token(token), audio_url(audio), image_url(img), unlock_url(unlock), | 22 : token(token), audio_url(audio), image_url(img), unlock_url(unlock), |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 GoogleServiceAuthError::GoogleServiceAuthError( | 233 GoogleServiceAuthError::GoogleServiceAuthError( |
234 State s, | 234 State s, |
235 const std::string& captcha_token, | 235 const std::string& captcha_token, |
236 const std::string& prompt_text, | 236 const std::string& prompt_text, |
237 const std::string& alternate_text, | 237 const std::string& alternate_text, |
238 int field_length) | 238 int field_length) |
239 : state_(s), | 239 : state_(s), |
240 second_factor_(captcha_token, prompt_text, alternate_text, field_length), | 240 second_factor_(captcha_token, prompt_text, alternate_text, field_length), |
241 network_error_(0) { | 241 network_error_(0) { |
242 } | 242 } |
OLD | NEW |