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

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 on ToT and cleaned up comments and unrelated changes. 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // is downloaded successfuly. 169 // is downloaded successfuly.
170 virtual void SaveUserImageFromProfileImage(const std::string& username) = 0; 170 virtual void SaveUserImageFromProfileImage(const std::string& username) = 0;
171 171
172 // Starts downloading the profile image for the logged-in user. 172 // Starts downloading the profile image for the logged-in user.
173 // If user's image index is |kProfileImageIndex|, newly downloaded image 173 // If user's image index is |kProfileImageIndex|, newly downloaded image
174 // is immediately set as user's current picture. 174 // is immediately set as user's current picture.
175 // |reason| is an arbitraty string (used to report UMA histograms with 175 // |reason| is an arbitraty string (used to report UMA histograms with
176 // download times). 176 // download times).
177 virtual void DownloadProfileImage(const std::string& reason) = 0; 177 virtual void DownloadProfileImage(const std::string& reason) = 0;
178 178
179 // Loads the key/certificates database for the current logged in user.
180 virtual void LoadKeyStore() = 0;
181
179 // Returns true if current user is an owner. 182 // Returns true if current user is an owner.
180 virtual bool IsCurrentUserOwner() const = 0; 183 virtual bool IsCurrentUserOwner() const = 0;
181 184
182 // Returns true if current user is not existing one (hasn't signed in before). 185 // Returns true if current user is not existing one (hasn't signed in before).
183 virtual bool IsCurrentUserNew() const = 0; 186 virtual bool IsCurrentUserNew() const = 0;
184 187
185 // Returns true if the current user is ephemeral. 188 // Returns true if the current user is ephemeral.
186 virtual bool IsCurrentUserEphemeral() const = 0; 189 virtual bool IsCurrentUserEphemeral() const = 0;
187 190
188 // Returns true if user is signed in. 191 // Returns true if user is signed in.
(...skipping 14 matching lines...) Expand all
203 virtual void NotifyLocalStateChanged() = 0; 206 virtual void NotifyLocalStateChanged() = 0;
204 207
205 // Returns the result of the last successful profile image download, if any. 208 // Returns the result of the last successful profile image download, if any.
206 // Otherwise, returns an empty bitmap. 209 // Otherwise, returns an empty bitmap.
207 virtual const SkBitmap& DownloadedProfileImage() const = 0; 210 virtual const SkBitmap& DownloadedProfileImage() const = 0;
208 }; 211 };
209 212
210 } // namespace chromeos 213 } // namespace chromeos
211 214
212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 215 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698