| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Returns default IME state for user session. | 199 // Returns default IME state for user session. |
| 200 scoped_refptr<input_method::InputMethodManager::State> GetDefaultIMEState( | 200 scoped_refptr<input_method::InputMethodManager::State> GetDefaultIMEState( |
| 201 Profile* profile); | 201 Profile* profile); |
| 202 | 202 |
| 203 // Note this could return NULL if not enabled. | 203 // Note this could return NULL if not enabled. |
| 204 EasyUnlockKeyManager* GetEasyUnlockKeyManager(); | 204 EasyUnlockKeyManager* GetEasyUnlockKeyManager(); |
| 205 | 205 |
| 206 // Update Easy unlock cryptohome keys for given user context. | 206 // Update Easy unlock cryptohome keys for given user context. |
| 207 void UpdateEasyUnlockKeys(const UserContext& user_context); | 207 void UpdateEasyUnlockKeys(const UserContext& user_context); |
| 208 | 208 |
| 209 // Removes a profile from the per-user input methods states map. |
| 210 void RemoveProfileForTesting(Profile* profile); |
| 211 |
| 209 private: | 212 private: |
| 210 friend struct DefaultSingletonTraits<UserSessionManager>; | 213 friend struct DefaultSingletonTraits<UserSessionManager>; |
| 211 | 214 |
| 212 typedef std::set<std::string> SigninSessionRestoreStateSet; | 215 typedef std::set<std::string> SigninSessionRestoreStateSet; |
| 213 | 216 |
| 214 UserSessionManager(); | 217 UserSessionManager(); |
| 215 virtual ~UserSessionManager(); | 218 virtual ~UserSessionManager(); |
| 216 | 219 |
| 217 // OAuth2LoginManager::Observer overrides: | 220 // OAuth2LoginManager::Observer overrides: |
| 218 virtual void OnSessionRestoreStateChanged( | 221 virtual void OnSessionRestoreStateChanged( |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; | 380 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; |
| 378 bool running_easy_unlock_key_ops_; | 381 bool running_easy_unlock_key_ops_; |
| 379 base::Closure easy_unlock_key_ops_finished_callback_; | 382 base::Closure easy_unlock_key_ops_finished_callback_; |
| 380 | 383 |
| 381 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 384 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 382 }; | 385 }; |
| 383 | 386 |
| 384 } // namespace chromeos | 387 } // namespace chromeos |
| 385 | 388 |
| 386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 389 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |