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

Side by Side Diff: components/user_manager/user_manager.h

Issue 2711113003: Track whether a given user session has completed initialization, and use (Closed)
Patch Set: Only expose known_user::RemovePrefsForTesting() for tests Created 3 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
« no previous file with comments | « components/user_manager/user.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_H_
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // in. 168 // in.
169 virtual void SwitchActiveUser(const AccountId& account_id) = 0; 169 virtual void SwitchActiveUser(const AccountId& account_id) = 0;
170 170
171 // Switches to the last active user (called after crash happens and session 171 // Switches to the last active user (called after crash happens and session
172 // restore has completed). 172 // restore has completed).
173 virtual void SwitchToLastActiveUser() = 0; 173 virtual void SwitchToLastActiveUser() = 0;
174 174
175 // Invoked by session manager to inform session start. 175 // Invoked by session manager to inform session start.
176 virtual void OnSessionStarted() = 0; 176 virtual void OnSessionStarted() = 0;
177 177
178 // Invoked once profile initialization has been completed. This allows various
179 // subsystems (for example, policy framework) to skip an expensive online
180 // initialization process, and also allows the signin screen to force an
181 // online signin if it knows that profile initialization has not yet
182 // completed. |user| is the User associated with the profile that has
183 // completed initialization.
184 virtual void OnProfileInitialized(User* user) = 0;
185
178 // Removes the user from the device. Note, it will verify that the given user 186 // Removes the user from the device. Note, it will verify that the given user
179 // isn't the owner, so calling this method for the owner will take no effect. 187 // isn't the owner, so calling this method for the owner will take no effect.
180 // Note, |delegate| can be NULL. 188 // Note, |delegate| can be NULL.
181 virtual void RemoveUser(const AccountId& account_id, 189 virtual void RemoveUser(const AccountId& account_id,
182 RemoveUserDelegate* delegate) = 0; 190 RemoveUserDelegate* delegate) = 0;
183 191
184 // Removes the user from the persistent list only. Also removes the user's 192 // Removes the user from the persistent list only. Also removes the user's
185 // picture. 193 // picture.
186 virtual void RemoveUserFromList(const AccountId& account_id) = 0; 194 virtual void RemoveUserFromList(const AccountId& account_id) = 0;
187 195
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 412
405 private: 413 private:
406 UserManager::UserSessionStateObserver* const observer_; 414 UserManager::UserSessionStateObserver* const observer_;
407 415
408 DISALLOW_COPY_AND_ASSIGN(ScopedUserSessionStateObserver); 416 DISALLOW_COPY_AND_ASSIGN(ScopedUserSessionStateObserver);
409 }; 417 };
410 418
411 } // namespace user_manager 419 } // namespace user_manager
412 420
413 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 421 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « components/user_manager/user.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698