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

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

Issue 9405035: Implement ephemeral users (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed. Created 8 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
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // OAuth token status for this user. 64 // OAuth token status for this user.
65 OAuthTokenStatus oauth_token_status() const { return oauth_token_status_; } 65 OAuthTokenStatus oauth_token_status() const { return oauth_token_status_; }
66 66
67 // The displayed (non-canonical) user email. 67 // The displayed (non-canonical) user email.
68 std::string display_email() const { return display_email_; } 68 std::string display_email() const { return display_email_; }
69 69
70 bool is_guest() const { return is_guest_; } 70 bool is_guest() const { return is_guest_; }
71 71
72 private: 72 private:
73 friend class UserManager; 73 friend class UserManager;
74 friend class UserManagerTest;
Ivan Korotkov 2012/03/01 20:16:30 Why do you need this?
use bartfab instead 2012/03/05 18:07:32 This friend declaration existed because UserManage
74 75
75 // Do not allow anyone else to create new User instances. 76 // Do not allow anyone else to create new User instances.
76 User(const std::string& email, bool is_guest); 77 User(const std::string& email, bool is_guest);
77 ~User(); 78 ~User();
78 79
79 // Setters are private so only UserManager can call them. 80 // Setters are private so only UserManager can call them.
80 void SetImage(const SkBitmap& image, int image_index); 81 void SetImage(const SkBitmap& image, int image_index);
81 // Sets a stub image until the next |SetImage| call. |image_index| may be 82 // Sets a stub image until the next |SetImage| call. |image_index| may be
82 // one of |kExternalImageIndex| or |kProfileImageIndex|. 83 // one of |kExternalImageIndex| or |kProfileImageIndex|.
83 void SetStubImage(int image_index); 84 void SetStubImage(int image_index);
(...skipping 24 matching lines...) Expand all
108 109
109 DISALLOW_COPY_AND_ASSIGN(User); 110 DISALLOW_COPY_AND_ASSIGN(User);
110 }; 111 };
111 112
112 // List of known users. 113 // List of known users.
113 typedef std::vector<User*> UserList; 114 typedef std::vector<User*> UserList;
114 115
115 } // namespace chromeos 116 } // namespace chromeos
116 117
117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ 118 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_manager.h » ('j') | chrome/browser/chromeos/login/user_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698