| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 ASH_SESSION_SESSION_STATE_DELEGATE_H_ | 5 #ifndef ASH_SESSION_SESSION_STATE_DELEGATE_H_ |
| 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ | 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 virtual bool ShouldShowAvatar(aura::Window* window) const = 0; | 127 virtual bool ShouldShowAvatar(aura::Window* window) const = 0; |
| 128 | 128 |
| 129 // Switches to another active user with |user_id| | 129 // Switches to another active user with |user_id| |
| 130 // (if that user has already signed in). | 130 // (if that user has already signed in). |
| 131 virtual void SwitchActiveUser(const std::string& user_id) = 0; | 131 virtual void SwitchActiveUser(const std::string& user_id) = 0; |
| 132 | 132 |
| 133 // Switches the active user to the next or previous user, with the same | 133 // Switches the active user to the next or previous user, with the same |
| 134 // ordering as GetLoggedInUsers. | 134 // ordering as GetLoggedInUsers. |
| 135 virtual void CycleActiveUser(CycleUser cycle_user) = 0; | 135 virtual void CycleActiveUser(CycleUser cycle_user) = 0; |
| 136 | 136 |
| 137 // Returns true if primary user policy does not forbid multiple signin. |
| 138 virtual bool IsMultiProfileAllowedByPrimaryUserPolicy() const = 0; |
| 139 |
| 137 // Adds or removes sessions state observer. | 140 // Adds or removes sessions state observer. |
| 138 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; | 141 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; |
| 139 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; | 142 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 } // namespace ash | 145 } // namespace ash |
| 143 | 146 |
| 144 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ | 147 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ |
| OLD | NEW |