| 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 10 matching lines...) Expand all Loading... |
| 21 #include "components/user_manager/user.h" | 21 #include "components/user_manager/user.h" |
| 22 #include "components/user_manager/user_manager.h" | 22 #include "components/user_manager/user_manager.h" |
| 23 #include "net/base/network_change_notifier.h" | 23 #include "net/base/network_change_notifier.h" |
| 24 #include "ui/base/ime/chromeos/input_method_manager.h" | 24 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 25 | 25 |
| 26 class GURL; | 26 class GURL; |
| 27 class PrefRegistrySimple; | 27 class PrefRegistrySimple; |
| 28 class PrefService; | 28 class PrefService; |
| 29 class Profile; | 29 class Profile; |
| 30 | 30 |
| 31 namespace net { |
| 32 class URLRequestContextGetter; |
| 33 } |
| 34 |
| 31 namespace user_manager { | 35 namespace user_manager { |
| 32 class User; | 36 class User; |
| 33 } // namespace user_manager | 37 } // namespace user_manager |
| 34 | 38 |
| 35 namespace chromeos { | 39 namespace chromeos { |
| 36 | 40 |
| 37 namespace test { | 41 namespace test { |
| 38 class UserSessionManagerTestApi; | 42 class UserSessionManagerTestApi; |
| 39 } // namespace test | 43 } // namespace test |
| 40 | 44 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // Returns default IME state for user session. | 217 // Returns default IME state for user session. |
| 214 scoped_refptr<input_method::InputMethodManager::State> GetDefaultIMEState( | 218 scoped_refptr<input_method::InputMethodManager::State> GetDefaultIMEState( |
| 215 Profile* profile); | 219 Profile* profile); |
| 216 | 220 |
| 217 // Note this could return NULL if not enabled. | 221 // Note this could return NULL if not enabled. |
| 218 EasyUnlockKeyManager* GetEasyUnlockKeyManager(); | 222 EasyUnlockKeyManager* GetEasyUnlockKeyManager(); |
| 219 | 223 |
| 220 // Update Easy unlock cryptohome keys for given user context. | 224 // Update Easy unlock cryptohome keys for given user context. |
| 221 void UpdateEasyUnlockKeys(const UserContext& user_context); | 225 void UpdateEasyUnlockKeys(const UserContext& user_context); |
| 222 | 226 |
| 227 // Returns the auth request context associated with auth data. |
| 228 net::URLRequestContextGetter* GetAuthRequestContext() const; |
| 229 |
| 223 // Removes a profile from the per-user input methods states map. | 230 // Removes a profile from the per-user input methods states map. |
| 224 void RemoveProfileForTesting(Profile* profile); | 231 void RemoveProfileForTesting(Profile* profile); |
| 225 | 232 |
| 226 bool has_auth_cookies() const { return has_auth_cookies_; } | 233 bool has_auth_cookies() const { return has_auth_cookies_; } |
| 227 | 234 |
| 228 private: | 235 private: |
| 229 friend class test::UserSessionManagerTestApi; | 236 friend class test::UserSessionManagerTestApi; |
| 230 friend struct DefaultSingletonTraits<UserSessionManager>; | 237 friend struct DefaultSingletonTraits<UserSessionManager>; |
| 231 | 238 |
| 232 typedef std::set<std::string> SigninSessionRestoreStateSet; | 239 typedef std::set<std::string> SigninSessionRestoreStateSet; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 bool waiting_for_child_account_status_; | 427 bool waiting_for_child_account_status_; |
| 421 | 428 |
| 422 base::WeakPtrFactory<UserSessionManager> weak_factory_; | 429 base::WeakPtrFactory<UserSessionManager> weak_factory_; |
| 423 | 430 |
| 424 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 431 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 425 }; | 432 }; |
| 426 | 433 |
| 427 } // namespace chromeos | 434 } // namespace chromeos |
| 428 | 435 |
| 429 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 436 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |