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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 std::string* chrome_client_secret); | 165 std::string* chrome_client_secret); |
166 void SetAppModeChromeClientOAuthInfo( | 166 void SetAppModeChromeClientOAuthInfo( |
167 const std::string& chrome_client_id, | 167 const std::string& chrome_client_id, |
168 const std::string& chrome_client_secret); | 168 const std::string& chrome_client_secret); |
169 | 169 |
170 // Changes browser locale (selects best suitable locale from different | 170 // Changes browser locale (selects best suitable locale from different |
171 // user settings). Returns true if callback will be called. | 171 // user settings). Returns true if callback will be called. |
172 bool RespectLocalePreference( | 172 bool RespectLocalePreference( |
173 Profile* profile, | 173 Profile* profile, |
174 const user_manager::User* user, | 174 const user_manager::User* user, |
175 scoped_ptr<locale_util::SwitchLanguageCallback> callback) const; | 175 const locale_util::SwitchLanguageCallback& callback) const; |
176 | 176 |
177 // Returns true if Easy unlock keys needs to be updated. | 177 // Returns true if Easy unlock keys needs to be updated. |
178 bool NeedsToUpdateEasyUnlockKeys() const; | 178 bool NeedsToUpdateEasyUnlockKeys() const; |
179 | 179 |
180 // Returns true if there are pending Easy unlock key operations and | 180 // Returns true if there are pending Easy unlock key operations and |
181 // |callback| will be invoked when it is done. | 181 // |callback| will be invoked when it is done. |
182 bool CheckEasyUnlockKeyOps(const base::Closure& callback); | 182 bool CheckEasyUnlockKeyOps(const base::Closure& callback); |
183 | 183 |
184 void AddSessionStateObserver(chromeos::UserSessionStateObserver* observer); | 184 void AddSessionStateObserver(chromeos::UserSessionStateObserver* observer); |
185 void RemoveSessionStateObserver(chromeos::UserSessionStateObserver* observer); | 185 void RemoveSessionStateObserver(chromeos::UserSessionStateObserver* observer); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; | 351 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; |
352 bool running_easy_unlock_key_ops_; | 352 bool running_easy_unlock_key_ops_; |
353 base::Closure easy_unlock_key_ops_finished_callback_; | 353 base::Closure easy_unlock_key_ops_finished_callback_; |
354 | 354 |
355 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 355 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace chromeos | 358 } // namespace chromeos |
359 | 359 |
360 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 360 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
OLD | NEW |