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

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

Issue 143873012: Add local state flag to force online login for a user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation. Created 6 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_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual const User* GetLoggedInUser() const OVERRIDE; 86 virtual const User* GetLoggedInUser() const OVERRIDE;
87 virtual User* GetLoggedInUser() OVERRIDE; 87 virtual User* GetLoggedInUser() OVERRIDE;
88 virtual const User* GetActiveUser() const OVERRIDE; 88 virtual const User* GetActiveUser() const OVERRIDE;
89 virtual User* GetActiveUser() OVERRIDE; 89 virtual User* GetActiveUser() OVERRIDE;
90 virtual const User* GetPrimaryUser() const OVERRIDE; 90 virtual const User* GetPrimaryUser() const OVERRIDE;
91 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; 91 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE;
92 virtual Profile* GetProfileByUser(const User* user) const OVERRIDE; 92 virtual Profile* GetProfileByUser(const User* user) const OVERRIDE;
93 virtual void SaveUserOAuthStatus( 93 virtual void SaveUserOAuthStatus(
94 const std::string& user_id, 94 const std::string& user_id,
95 User::OAuthTokenStatus oauth_token_status) OVERRIDE; 95 User::OAuthTokenStatus oauth_token_status) OVERRIDE;
96 virtual void SaveForceOnlineSignin(const std::string& user_id,
97 bool force_online_signin) OVERRIDE;
96 virtual void SaveUserDisplayName(const std::string& user_id, 98 virtual void SaveUserDisplayName(const std::string& user_id,
97 const base::string16& display_name) OVERRIDE; 99 const base::string16& display_name) OVERRIDE;
98 virtual base::string16 GetUserDisplayName( 100 virtual base::string16 GetUserDisplayName(
99 const std::string& user_id) const OVERRIDE; 101 const std::string& user_id) const OVERRIDE;
100 virtual void SaveUserDisplayEmail(const std::string& user_id, 102 virtual void SaveUserDisplayEmail(const std::string& user_id,
101 const std::string& display_email) OVERRIDE; 103 const std::string& display_email) OVERRIDE;
102 virtual std::string GetUserDisplayEmail( 104 virtual std::string GetUserDisplayEmail(
103 const std::string& user_id) const OVERRIDE; 105 const std::string& user_id) const OVERRIDE;
104 virtual void UpdateUserAccountData( 106 virtual void UpdateUserAccountData(
105 const std::string& user_id, 107 const std::string& user_id,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Indicates that a user just logged into a retail mode session. 244 // Indicates that a user just logged into a retail mode session.
243 void RetailModeUserLoggedIn(); 245 void RetailModeUserLoggedIn();
244 246
245 // Notifies that user has logged in. 247 // Notifies that user has logged in.
246 // Sends NOTIFICATION_LOGIN_USER_CHANGED notification. 248 // Sends NOTIFICATION_LOGIN_USER_CHANGED notification.
247 void NotifyOnLogin(); 249 void NotifyOnLogin();
248 250
249 // Reads user's oauth token status from local state preferences. 251 // Reads user's oauth token status from local state preferences.
250 User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& user_id) const; 252 User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& user_id) const;
251 253
254 // Read a flag indicating whether online authentication against GAIA should
255 // be enforced during the user's next sign-in from local state preferences.
256 bool LoadForceOnlineSignin(const std::string& user_id) const;
257
252 void SetCurrentUserIsOwner(bool is_current_user_owner); 258 void SetCurrentUserIsOwner(bool is_current_user_owner);
253 259
254 // Updates current user ownership on UI thread. 260 // Updates current user ownership on UI thread.
255 void UpdateOwnership(); 261 void UpdateOwnership();
256 262
257 // Removes data stored or cached outside the user's cryptohome (wallpaper, 263 // Removes data stored or cached outside the user's cryptohome (wallpaper,
258 // avatar, OAuth token status, display name, display email). 264 // avatar, OAuth token status, display name, display email).
259 void RemoveNonCryptohomeData(const std::string& user_id); 265 void RemoveNonCryptohomeData(const std::string& user_id);
260 266
261 // Removes a regular or locally managed user from the user list. 267 // Removes a regular or locally managed user from the user list.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 478
473 // Observer for the policy that can be used to manage user images. 479 // Observer for the policy that can be used to manage user images.
474 scoped_ptr<policy::CloudExternalDataPolicyObserver> policy_observer_; 480 scoped_ptr<policy::CloudExternalDataPolicyObserver> policy_observer_;
475 481
476 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); 482 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
477 }; 483 };
478 484
479 } // namespace chromeos 485 } // namespace chromeos
480 486
481 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 487 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698