| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 std::string* chrome_client_secret); | 146 std::string* chrome_client_secret); |
| 147 void SetAppModeChromeClientOAuthInfo( | 147 void SetAppModeChromeClientOAuthInfo( |
| 148 const std::string& chrome_client_id, | 148 const std::string& chrome_client_id, |
| 149 const std::string& chrome_client_secret); | 149 const std::string& chrome_client_secret); |
| 150 | 150 |
| 151 // Changes browser locale (selects best suitable locale from different | 151 // Changes browser locale (selects best suitable locale from different |
| 152 // user settings). Returns true if callback will be called. | 152 // user settings). Returns true if callback will be called. |
| 153 bool RespectLocalePreference( | 153 bool RespectLocalePreference( |
| 154 Profile* profile, | 154 Profile* profile, |
| 155 const user_manager::User* user, | 155 const user_manager::User* user, |
| 156 const locale_util::SwitchLanguageCallback& callback) const; | 156 scoped_ptr<locale_util::SwitchLanguageCallback> callback) const; |
| 157 | 157 |
| 158 // Returns true if Easy unlock keys needs to be updated. | 158 // Returns true if Easy unlock keys needs to be updated. |
| 159 bool NeedsToUpdateEasyUnlockKeys() const; | 159 bool NeedsToUpdateEasyUnlockKeys() const; |
| 160 | 160 |
| 161 // Returns true if there are pending Easy unlock key operations and | 161 // Returns true if there are pending Easy unlock key operations and |
| 162 // |callback| will be invoked when it is done. | 162 // |callback| will be invoked when it is done. |
| 163 bool CheckEasyUnlockKeyOps(const base::Closure& callback); | 163 bool CheckEasyUnlockKeyOps(const base::Closure& callback); |
| 164 | 164 |
| 165 void AddSessionStateObserver(chromeos::UserSessionStateObserver* observer); | 165 void AddSessionStateObserver(chromeos::UserSessionStateObserver* observer); |
| 166 void RemoveSessionStateObserver(chromeos::UserSessionStateObserver* observer); | 166 void RemoveSessionStateObserver(chromeos::UserSessionStateObserver* observer); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; | 318 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; |
| 319 bool running_easy_unlock_key_ops_; | 319 bool running_easy_unlock_key_ops_; |
| 320 base::Closure easy_unlock_key_ops_finished_callback_; | 320 base::Closure easy_unlock_key_ops_finished_callback_; |
| 321 | 321 |
| 322 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 322 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 } // namespace chromeos | 325 } // namespace chromeos |
| 326 | 326 |
| 327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |