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

Unified Diff: ash/session_state_delegate.h

Issue 15718003: Add SessionStateObserver with ActiveUserChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge & add SessionStateDelegateChromeos Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/session_state_delegate_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session_state_delegate.h
diff --git a/ash/session_state_delegate.h b/ash/session_state_delegate.h
index f5451cff48e1fd61d5a6297e8775521b3aaac38a..2688c1850cea5b04ac5fe5a4417076e0da54ada0 100644
--- a/ash/session_state_delegate.h
+++ b/ash/session_state_delegate.h
@@ -17,12 +17,14 @@ class ImageSkia;
namespace ash {
+class SessionStateObserver;
+
// The index for the multi-profile item to use. The list is always LRU sorted
// So that the index #0 is the currently active user.
typedef int MultiProfileIndex;
-// A list of email addresses.
-typedef std::vector<std::string> UserEmailList;
+// A list of user_id.
+typedef std::vector<std::string> UserIdList;
// Delegate for checking and modifying the session state.
class ASH_EXPORT SessionStateDelegate {
@@ -68,10 +70,14 @@ class ASH_EXPORT SessionStateDelegate {
virtual const gfx::ImageSkia& GetUserImage(MultiProfileIndex index) const = 0;
// Returns a list of all logged in users.
- virtual void GetLoggedInUsers(UserEmailList* users) = 0;
+ virtual void GetLoggedInUsers(UserIdList* users) = 0;
// Switches to another active user (if that user has already signed in).
- virtual void SwitchActiveUser(const std::string& email) = 0;
+ virtual void SwitchActiveUser(const std::string& user_id) = 0;
+
+ // Adds or removes sessions state observer.
+ virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
+ virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
};
} // namespace ash
« no previous file with comments | « ash/ash.gyp ('k') | ash/session_state_delegate_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698