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

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

Issue 14069017: Move *UserLoggedIn methods from UserManager to UserManagerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit addressed. Created 7 years, 8 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 "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // |browser_restart| is true when reloading Chrome after crash to distinguish 103 // |browser_restart| is true when reloading Chrome after crash to distinguish
104 // from normal sign in flow. 104 // from normal sign in flow.
105 // |username_hash| is used to identify homedir mount point. 105 // |username_hash| is used to identify homedir mount point.
106 virtual void UserLoggedIn(const std::string& email, 106 virtual void UserLoggedIn(const std::string& email,
107 const std::string& username_hash, 107 const std::string& username_hash,
108 bool browser_restart) = 0; 108 bool browser_restart) = 0;
109 109
110 // Switches to active user identified by |email|. User has to be logged in. 110 // Switches to active user identified by |email|. User has to be logged in.
111 virtual void SwitchActiveUser(const std::string& email) = 0; 111 virtual void SwitchActiveUser(const std::string& email) = 0;
112 112
113 // Indicates that user just logged on as the retail mode user.
114 virtual void RetailModeUserLoggedIn() = 0;
115
116 // Indicates that user just started incognito session.
117 virtual void GuestUserLoggedIn() = 0;
118
119 // Indicates that a kiosk app robot just logged in.
120 virtual void KioskAppLoggedIn(const std::string& app_id) = 0;
121
122 // Indicates that a locally managed user just logged in.
123 virtual void LocallyManagedUserLoggedIn(const std::string& username) = 0;
124
125 // Indicates that a user just logged into a public account.
126 virtual void PublicAccountUserLoggedIn(User* user) = 0;
127
128 // Indicates that a regular user just logged in.
129 virtual void RegularUserLoggedIn(const std::string& email,
130 bool browser_restart) = 0;
131
132 // Indicates that a regular user just logged in as ephemeral.
133 virtual void RegularUserLoggedInAsEphemeral(const std::string& email) = 0;
134
135 // Called when browser session is started i.e. after 113 // Called when browser session is started i.e. after
136 // browser_creator.LaunchBrowser(...) was called after user sign in. 114 // browser_creator.LaunchBrowser(...) was called after user sign in.
137 // When user is at the image screen IsUserLoggedIn() will return true 115 // When user is at the image screen IsUserLoggedIn() will return true
138 // but SessionStarted() will return false. 116 // but SessionStarted() will return false.
139 // Fires NOTIFICATION_SESSION_STARTED. 117 // Fires NOTIFICATION_SESSION_STARTED.
140 virtual void SessionStarted() = 0; 118 virtual void SessionStarted() = 0;
141 119
142 // Creates locally managed user with given display name, and id (e-mail), and 120 // Creates locally managed user with given display name, and id (e-mail), and
143 // sets |display_name| for created user and stores it to 121 // sets |display_name| for created user and stores it to
144 // persistent list. Returns created user, or existing user if there already 122 // persistent list. Returns created user, or existing user if there already
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 291
314 virtual void AddObserver(Observer* obs) = 0; 292 virtual void AddObserver(Observer* obs) = 0;
315 virtual void RemoveObserver(Observer* obs) = 0; 293 virtual void RemoveObserver(Observer* obs) = 0;
316 294
317 virtual void NotifyLocalStateChanged() = 0; 295 virtual void NotifyLocalStateChanged() = 0;
318 }; 296 };
319 297
320 } // namespace chromeos 298 } // namespace chromeos
321 299
322 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 300 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698