OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 void OnBootstrapUserContextInitialized(bool success, | 240 void OnBootstrapUserContextInitialized(bool success, |
241 const UserContext& user_context); | 241 const UserContext& user_context); |
242 | 242 |
243 // Callback invoked when |oauth2_token_initializer_| has finished. | 243 // Callback invoked when |oauth2_token_initializer_| has finished. |
244 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); | 244 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); |
245 | 245 |
246 // Callback invoked when |token_handle_util_| has finished. | 246 // Callback invoked when |token_handle_util_| has finished. |
247 void OnTokenHandleObtained(const user_manager::UserID& id, | 247 void OnTokenHandleObtained(const user_manager::UserID& id, |
248 TokenHandleUtil::TokenHandleStatus status); | 248 TokenHandleUtil::TokenHandleStatus status); |
249 | 249 |
250 // Returns |true| if token handles should be used on this device | |
Nikita (slow)
2015/05/13 08:33:37
nit: dot at the end.
| |
251 bool TokenHandlesEnabled(); | |
252 | |
250 // Public session auto-login timer. | 253 // Public session auto-login timer. |
251 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; | 254 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; |
252 | 255 |
253 // Public session auto-login timeout, in milliseconds. | 256 // Public session auto-login timeout, in milliseconds. |
254 int public_session_auto_login_delay_; | 257 int public_session_auto_login_delay_; |
255 | 258 |
256 // Username for public session auto-login. | 259 // Username for public session auto-login. |
257 std::string public_session_auto_login_username_; | 260 std::string public_session_auto_login_username_; |
258 | 261 |
259 // Used to execute login operations. | 262 // Used to execute login operations. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 | 344 |
342 // Factory of callbacks. | 345 // Factory of callbacks. |
343 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 346 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
344 | 347 |
345 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 348 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
346 }; | 349 }; |
347 | 350 |
348 } // namespace chromeos | 351 } // namespace chromeos |
349 | 352 |
350 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 353 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |