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

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

Issue 9466005: Make sure the device recovers from policy loss in the consumer case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT and cleaned up the unit tests. 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 | 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_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 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // is downloaded successfuly. 167 // is downloaded successfuly.
168 virtual void SaveUserImageFromProfileImage(const std::string& username) = 0; 168 virtual void SaveUserImageFromProfileImage(const std::string& username) = 0;
169 169
170 // Starts downloading the profile image for the logged-in user. 170 // Starts downloading the profile image for the logged-in user.
171 // If user's image index is |kProfileImageIndex|, newly downloaded image 171 // If user's image index is |kProfileImageIndex|, newly downloaded image
172 // is immediately set as user's current picture. 172 // is immediately set as user's current picture.
173 // |reason| is an arbitraty string (used to report UMA histograms with 173 // |reason| is an arbitraty string (used to report UMA histograms with
174 // download times). 174 // download times).
175 virtual void DownloadProfileImage(const std::string& reason) = 0; 175 virtual void DownloadProfileImage(const std::string& reason) = 0;
176 176
177 // Loads the key/certificates database for the current logged in user.
178 virtual void LoadKeyStore() = 0;
179
177 // Returns true if current user is an owner. 180 // Returns true if current user is an owner.
178 virtual bool IsCurrentUserOwner() const = 0; 181 virtual bool IsCurrentUserOwner() const = 0;
179 182
180 // Returns true if current user is not existing one (hasn't signed in before). 183 // Returns true if current user is not existing one (hasn't signed in before).
181 virtual bool IsCurrentUserNew() const = 0; 184 virtual bool IsCurrentUserNew() const = 0;
182 185
183 // Returns true if the current user is ephemeral. 186 // Returns true if the current user is ephemeral.
184 virtual bool IsCurrentUserEphemeral() const = 0; 187 virtual bool IsCurrentUserEphemeral() const = 0;
185 188
186 // Returns true if user is signed in. 189 // Returns true if user is signed in.
(...skipping 14 matching lines...) Expand all
201 virtual void NotifyLocalStateChanged() = 0; 204 virtual void NotifyLocalStateChanged() = 0;
202 205
203 // Returns the result of the last successful profile image download, if any. 206 // Returns the result of the last successful profile image download, if any.
204 // Otherwise, returns an empty bitmap. 207 // Otherwise, returns an empty bitmap.
205 virtual const SkBitmap& DownloadedProfileImage() const = 0; 208 virtual const SkBitmap& DownloadedProfileImage() const = 0;
206 }; 209 };
207 210
208 } // namespace chromeos 211 } // namespace chromeos
209 212
210 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 213 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/parallel_authenticator_unittest.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698