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

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: 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 virtual User* GetUserByProfile(Profile* profile) const = 0; 218 virtual User* GetUserByProfile(Profile* profile) const = 0;
219 219
220 /// Returns NULL if profile for user is not found or is not fully loaded. 220 /// Returns NULL if profile for user is not found or is not fully loaded.
221 virtual Profile* GetProfileByUser(const User* user) const = 0; 221 virtual Profile* GetProfileByUser(const User* user) const = 0;
222 222
223 // Saves user's oauth token status in local state preferences. 223 // Saves user's oauth token status in local state preferences.
224 virtual void SaveUserOAuthStatus( 224 virtual void SaveUserOAuthStatus(
225 const std::string& user_id, 225 const std::string& user_id,
226 User::OAuthTokenStatus oauth_token_status) = 0; 226 User::OAuthTokenStatus oauth_token_status) = 0;
227 227
228 // Saves a flag indicating whether online authentication against GAIA should
229 // be enforced during the user's next sign-in.
230 virtual void SaveForceOnlineSignin(const std::string& user_id,
231 bool force_online_signin) = 0;
232
228 // Saves user's displayed name in local state preferences. 233 // Saves user's displayed name in local state preferences.
229 // Ignored If there is no such user. 234 // Ignored If there is no such user.
230 virtual void SaveUserDisplayName(const std::string& user_id, 235 virtual void SaveUserDisplayName(const std::string& user_id,
231 const base::string16& display_name) = 0; 236 const base::string16& display_name) = 0;
232 237
233 // Updates data upon User Account download. 238 // Updates data upon User Account download.
234 virtual void UpdateUserAccountData(const std::string& user_id, 239 virtual void UpdateUserAccountData(const std::string& user_id,
235 const UserAccountData& account_data) = 0; 240 const UserAccountData& account_data) = 0;
236 241
237 // Returns the display name for user |user_id| if it is known (was 242 // 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
390 ScopedTestUserManager(); 395 ScopedTestUserManager();
391 ~ScopedTestUserManager(); 396 ~ScopedTestUserManager();
392 397
393 private: 398 private:
394 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); 399 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
395 }; 400 };
396 401
397 } // namespace chromeos 402 } // namespace chromeos
398 403
399 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 404 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698