| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // Returns default IME state for user session. | 171 // Returns default IME state for user session. |
| 172 scoped_refptr<input_method::InputMethodManager::State> GetDefaultIMEState( | 172 scoped_refptr<input_method::InputMethodManager::State> GetDefaultIMEState( |
| 173 Profile* profile); | 173 Profile* profile); |
| 174 | 174 |
| 175 // Note this could return NULL if not enabled. | 175 // Note this could return NULL if not enabled. |
| 176 EasyUnlockKeyManager* GetEasyUnlockKeyManager(); | 176 EasyUnlockKeyManager* GetEasyUnlockKeyManager(); |
| 177 | 177 |
| 178 // Update Easy unlock cryptohome keys for given user context. | 178 // Update Easy unlock cryptohome keys for given user context. |
| 179 void UpdateEasyUnlockKeys(const UserContext& user_context); | 179 void UpdateEasyUnlockKeys(const UserContext& user_context); |
| 180 | 180 |
| 181 // Removes a profile from the per-user input methods states map. |
| 182 void RemoveProfileForTesting(Profile* profile); |
| 183 |
| 181 private: | 184 private: |
| 182 friend struct DefaultSingletonTraits<UserSessionManager>; | 185 friend struct DefaultSingletonTraits<UserSessionManager>; |
| 183 | 186 |
| 184 typedef std::set<std::string> SigninSessionRestoreStateSet; | 187 typedef std::set<std::string> SigninSessionRestoreStateSet; |
| 185 | 188 |
| 186 UserSessionManager(); | 189 UserSessionManager(); |
| 187 virtual ~UserSessionManager(); | 190 virtual ~UserSessionManager(); |
| 188 | 191 |
| 189 // OAuth2LoginManager::Observer overrides: | 192 // OAuth2LoginManager::Observer overrides: |
| 190 virtual void OnSessionRestoreStateChanged( | 193 virtual void OnSessionRestoreStateChanged( |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; | 321 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; |
| 319 bool running_easy_unlock_key_ops_; | 322 bool running_easy_unlock_key_ops_; |
| 320 base::Closure easy_unlock_key_ops_finished_callback_; | 323 base::Closure easy_unlock_key_ops_finished_callback_; |
| 321 | 324 |
| 322 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 325 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 323 }; | 326 }; |
| 324 | 327 |
| 325 } // namespace chromeos | 328 } // namespace chromeos |
| 326 | 329 |
| 327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 330 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |