| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // Removes a profile from the per-user input methods states map. | 239 // Removes a profile from the per-user input methods states map. |
| 240 void RemoveProfileForTesting(Profile* profile); | 240 void RemoveProfileForTesting(Profile* profile); |
| 241 | 241 |
| 242 const UserContext& user_context() const { return user_context_; } | 242 const UserContext& user_context() const { return user_context_; } |
| 243 bool has_auth_cookies() const { return has_auth_cookies_; } | 243 bool has_auth_cookies() const { return has_auth_cookies_; } |
| 244 | 244 |
| 245 void Shutdown(); | 245 void Shutdown(); |
| 246 | 246 |
| 247 private: | 247 private: |
| 248 friend class test::UserSessionManagerTestApi; | 248 friend class test::UserSessionManagerTestApi; |
| 249 friend struct DefaultSingletonTraits<UserSessionManager>; | 249 friend struct base::DefaultSingletonTraits<UserSessionManager>; |
| 250 | 250 |
| 251 typedef std::set<std::string> SigninSessionRestoreStateSet; | 251 typedef std::set<std::string> SigninSessionRestoreStateSet; |
| 252 | 252 |
| 253 UserSessionManager(); | 253 UserSessionManager(); |
| 254 ~UserSessionManager() override; | 254 ~UserSessionManager() override; |
| 255 | 255 |
| 256 // OAuth2LoginManager::Observer overrides: | 256 // OAuth2LoginManager::Observer overrides: |
| 257 void OnSessionRestoreStateChanged( | 257 void OnSessionRestoreStateChanged( |
| 258 Profile* user_profile, | 258 Profile* user_profile, |
| 259 OAuth2LoginManager::SessionRestoreState state) override; | 259 OAuth2LoginManager::SessionRestoreState state) override; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 bool waiting_for_child_account_status_; | 476 bool waiting_for_child_account_status_; |
| 477 | 477 |
| 478 base::WeakPtrFactory<UserSessionManager> weak_factory_; | 478 base::WeakPtrFactory<UserSessionManager> weak_factory_; |
| 479 | 479 |
| 480 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 480 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 481 }; | 481 }; |
| 482 | 482 |
| 483 } // namespace chromeos | 483 } // namespace chromeos |
| 484 | 484 |
| 485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |