Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: google_apis/gaia/google_service_auth_error.h

Issue 213363003: Delete some dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brettw Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_utils.cc ('k') | google_apis/gaia/google_service_auth_error.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // Returns a message describing the error. 183 // Returns a message describing the error.
184 std::string ToString() const; 184 std::string ToString() const;
185 185
186 private: 186 private:
187 GoogleServiceAuthError(State s, int error); 187 GoogleServiceAuthError(State s, int error);
188 188
189 // Construct a GoogleServiceAuthError from |state| and |error_message|. 189 // Construct a GoogleServiceAuthError from |state| and |error_message|.
190 GoogleServiceAuthError(State state, const std::string& error_message); 190 GoogleServiceAuthError(State state, const std::string& error_message);
191 191
192 explicit GoogleServiceAuthError(const std::string& error_message);
193
194 GoogleServiceAuthError(State s, const std::string& captcha_token, 192 GoogleServiceAuthError(State s, const std::string& captcha_token,
195 const GURL& captcha_audio_url, 193 const GURL& captcha_audio_url,
196 const GURL& captcha_image_url, 194 const GURL& captcha_image_url,
197 const GURL& captcha_unlock_url, 195 const GURL& captcha_unlock_url,
198 int image_width, 196 int image_width,
199 int image_height); 197 int image_height);
200 198
201 GoogleServiceAuthError(State s, const std::string& captcha_token,
202 const std::string& prompt_text,
203 const std::string& alternate_text,
204 int field_length);
205
206 State state_; 199 State state_;
207 Captcha captcha_; 200 Captcha captcha_;
208 SecondFactor second_factor_; 201 SecondFactor second_factor_;
209 int network_error_; 202 int network_error_;
210 std::string error_message_; 203 std::string error_message_;
211 }; 204 };
212 205
213 #endif // GOOGLE_APIS_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_ 206 #endif // GOOGLE_APIS_GAIA_GOOGLE_SERVICE_AUTH_ERROR_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_utils.cc ('k') | google_apis/gaia/google_service_auth_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698