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

Side by Side Diff: chrome/browser/chromeos/login/user_manager.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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/base/locale_util.h" 10 #include "chrome/browser/chromeos/base/locale_util.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual User* GetUserByProfile(Profile* profile) const = 0; 223 virtual User* GetUserByProfile(Profile* profile) const = 0;
224 224
225 /// Returns NULL if profile for user is not found or is not fully loaded. 225 /// Returns NULL if profile for user is not found or is not fully loaded.
226 virtual Profile* GetProfileByUser(const User* user) const = 0; 226 virtual Profile* GetProfileByUser(const User* user) const = 0;
227 227
228 // Saves user's oauth token status in local state preferences. 228 // Saves user's oauth token status in local state preferences.
229 virtual void SaveUserOAuthStatus( 229 virtual void SaveUserOAuthStatus(
230 const std::string& user_id, 230 const std::string& user_id,
231 User::OAuthTokenStatus oauth_token_status) = 0; 231 User::OAuthTokenStatus oauth_token_status) = 0;
232 232
233 // Saves a flag indicating whether online authentication against GAIA should
234 // be enforced during the user's next sign-in.
235 virtual void SaveForceOnlineSignin(const std::string& user_id,
236 bool force_online_signin) = 0;
237
233 // Saves user's displayed name in local state preferences. 238 // Saves user's displayed name in local state preferences.
234 // Ignored If there is no such user. 239 // Ignored If there is no such user.
235 virtual void SaveUserDisplayName(const std::string& user_id, 240 virtual void SaveUserDisplayName(const std::string& user_id,
236 const base::string16& display_name) = 0; 241 const base::string16& display_name) = 0;
237 242
238 // Updates data upon User Account download. 243 // Updates data upon User Account download.
239 virtual void UpdateUserAccountData(const std::string& user_id, 244 virtual void UpdateUserAccountData(const std::string& user_id,
240 const UserAccountData& account_data) = 0; 245 const UserAccountData& account_data) = 0;
241 246
242 // Returns the display name for user |user_id| if it is known (was 247 // Returns the display name for user |user_id| if it is known (was
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 ScopedTestUserManager(); 400 ScopedTestUserManager();
396 ~ScopedTestUserManager(); 401 ~ScopedTestUserManager();
397 402
398 private: 403 private:
399 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); 404 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
400 }; 405 };
401 406
402 } // namespace chromeos 407 } // namespace chromeos
403 408
404 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 409 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user.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