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

Side by Side Diff: chrome/browser/chromeos/login/user.h

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 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
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "chrome/browser/chromeos/login/user_image.h" 13 #include "chrome/browser/chromeos/login/user_image.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 // The guest user has a magic, empty e-mail address. 19 // The guest user has a magic, empty e-mail address.
20 extern const char kGuestUserEMail[]; 20 extern const char kGuestUserEMail[];
21 21
22 // The retail mode user has a magic, domainless e-mail address. 22 // The retail mode user has a magic, domainless e-mail address.
23 extern const char kRetailModeUserEMail[]; 23 extern const char kRetailModeUserEMail[];
24 24
25 extern const int kDefaultImagesCount; 25 extern const int kDefaultImagesCount;
26 26
27 // User credentials data that is being exchanged between part of ChromeOS
28 // authentication mechanism.
29 struct UserCredentials {
30 UserCredentials();
31 UserCredentials(const std::string& username,
32 const std::string& password,
33 const std::string& auth_code);
34 bool operator==(const UserCredentials& cred) const;
35 std::string username;
36 std::string password;
37 std::string auth_code;
38 };
39
27 // A class representing information about a previously logged in user. 40 // A class representing information about a previously logged in user.
28 // Each user has a canonical email (username), returned by |email()| and 41 // Each user has a canonical email (username), returned by |email()| and
29 // may have a different displayed email (in the raw form as entered by user), 42 // may have a different displayed email (in the raw form as entered by user),
30 // returned by |displayed_email()|. 43 // returned by |displayed_email()|.
31 // Displayed emails are for use in UI only, anywhere else users must be referred 44 // Displayed emails are for use in UI only, anywhere else users must be referred
32 // to by |email()|. 45 // to by |email()|.
33 class User { 46 class User {
34 public: 47 public:
35 // The user type. 48 // The user type.
36 typedef enum { 49 typedef enum {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 207
195 DISALLOW_COPY_AND_ASSIGN(User); 208 DISALLOW_COPY_AND_ASSIGN(User);
196 }; 209 };
197 210
198 // List of known users. 211 // List of known users.
199 typedef std::vector<User*> UserList; 212 typedef std::vector<User*> UserList;
200 213
201 } // namespace chromeos 214 } // namespace chromeos
202 215
203 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 216 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/test_login_utils.cc ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698