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

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

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 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
(...skipping 30 matching lines...) Expand all
41 // Retail mode user, logs in without authentication. This is a special user 41 // Retail mode user, logs in without authentication. This is a special user
42 // type used in retail mode only. 42 // type used in retail mode only.
43 USER_TYPE_RETAIL_MODE, 43 USER_TYPE_RETAIL_MODE,
44 // Public account user, logs in without authentication. Available only if 44 // Public account user, logs in without authentication. Available only if
45 // enabled through policy. 45 // enabled through policy.
46 USER_TYPE_PUBLIC_ACCOUNT 46 USER_TYPE_PUBLIC_ACCOUNT
47 } UserType; 47 } UserType;
48 48
49 // User OAuth token status according to the last check. 49 // User OAuth token status according to the last check.
50 typedef enum { 50 typedef enum {
51 OAUTH_TOKEN_STATUS_UNKNOWN = 0, 51 OAUTH_TOKEN_STATUS_UNKNOWN = 0,
52 OAUTH_TOKEN_STATUS_INVALID = 1, 52 OAUTH1_TOKEN_STATUS_INVALID = 1,
53 OAUTH_TOKEN_STATUS_VALID = 2, 53 OAUTH1_TOKEN_STATUS_VALID = 2,
54 } OAuthTokenStatus; 54 OAUTH2_TOKEN_STATUS_INVALID = 3,
55 OAUTH2_TOKEN_STATUS_VALID = 4,
56 } OAuthTokenStatus;
55 57
56 // Returned as |image_index| when user-selected file or photo is used as 58 // Returned as |image_index| when user-selected file or photo is used as
57 // user image. 59 // user image.
58 static const int kExternalImageIndex = -1; 60 static const int kExternalImageIndex = -1;
59 // Returned as |image_index| when user profile image is used as user image. 61 // Returned as |image_index| when user profile image is used as user image.
60 static const int kProfileImageIndex = -2; 62 static const int kProfileImageIndex = -2;
61 static const int kInvalidImageIndex = -3; 63 static const int kInvalidImageIndex = -3;
62 64
63 enum WallpaperType { 65 enum WallpaperType {
64 DAILY = 0, 66 DAILY = 0,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 188
187 DISALLOW_COPY_AND_ASSIGN(User); 189 DISALLOW_COPY_AND_ASSIGN(User);
188 }; 190 };
189 191
190 // List of known users. 192 // List of known users.
191 typedef std::vector<User*> UserList; 193 typedef std::vector<User*> UserList;
192 194
193 } // namespace chromeos 195 } // namespace chromeos
194 196
195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 197 #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_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698