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

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

Issue 3413021: Implement users options handling in login screen. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: for tfarina,dpolukhin,nkostylev #1 Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Indicates that user just started off the record session. 62 // Indicates that user just started off the record session.
63 void OffTheRecordUserLoggedIn(); 63 void OffTheRecordUserLoggedIn();
64 64
65 // Indicates that a user with the given email has just logged in. 65 // Indicates that a user with the given email has just logged in.
66 // The persistent list will be updated accordingly. 66 // The persistent list will be updated accordingly.
67 void UserLoggedIn(const std::string& email); 67 void UserLoggedIn(const std::string& email);
68 68
69 // Remove user from persistent list. NOTE: user's data won't be removed. 69 // Remove user from persistent list. NOTE: user's data won't be removed.
70 void RemoveUser(const std::string& email); 70 void RemoveUser(const std::string& email);
71 71
72 // Returns true if given user has logged into the device before.
73 bool IsKnownUser(const std::string& email);
74
72 // Returns the logged-in user. 75 // Returns the logged-in user.
73 const User& logged_in_user() { 76 const User& logged_in_user() {
74 return logged_in_user_; 77 return logged_in_user_;
75 } 78 }
76 79
77 // Sets image for logged-in user and sends LOGIN_USER_IMAGE_CHANGED 80 // Sets image for logged-in user and sends LOGIN_USER_IMAGE_CHANGED
78 // notification about the image changed via NotificationService. 81 // notification about the image changed via NotificationService.
79 void SetLoggedInUserImage(const SkBitmap& image); 82 void SetLoggedInUserImage(const SkBitmap& image);
80 83
81 // Saves image to file and saves image path in local state preferences. 84 // Saves image to file and saves image path in local state preferences.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool current_user_is_owner_; 123 bool current_user_is_owner_;
121 124
122 NotificationRegistrar registrar_; 125 NotificationRegistrar registrar_;
123 126
124 DISALLOW_COPY_AND_ASSIGN(UserManager); 127 DISALLOW_COPY_AND_ASSIGN(UserManager);
125 }; 128 };
126 129
127 } // namespace chromeos 130 } // namespace chromeos
128 131
129 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 132 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698