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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 21 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
22 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 22 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
23 #include "chrome/browser/chromeos/login/ui/login_display.h" | 23 #include "chrome/browser/chromeos/login/ui/login_display.h" |
24 #include "chrome/browser/chromeos/settings/cros_settings.h" | 24 #include "chrome/browser/chromeos/settings/cros_settings.h" |
25 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 25 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
26 #include "chromeos/login/auth/login_performer.h" | 26 #include "chromeos/login/auth/login_performer.h" |
27 #include "chromeos/login/auth/user_context.h" | 27 #include "chromeos/login/auth/user_context.h" |
| 28 #include "components/signin/core/account_id/account_id.h" |
28 #include "components/user_manager/user.h" | 29 #include "components/user_manager/user.h" |
29 #include "content/public/browser/notification_observer.h" | 30 #include "content/public/browser/notification_observer.h" |
30 #include "content/public/browser/notification_registrar.h" | 31 #include "content/public/browser/notification_registrar.h" |
31 #include "ui/gfx/geometry/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
32 #include "url/gurl.h" | 33 #include "url/gurl.h" |
33 | 34 |
34 namespace base { | 35 namespace base { |
35 class ListValue; | 36 class ListValue; |
36 } | 37 } |
37 | 38 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 241 |
241 // Callback invoked when |oauth2_token_initializer_| has finished. | 242 // Callback invoked when |oauth2_token_initializer_| has finished. |
242 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); | 243 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); |
243 | 244 |
244 // Public session auto-login timer. | 245 // Public session auto-login timer. |
245 scoped_ptr<base::OneShotTimer> auto_login_timer_; | 246 scoped_ptr<base::OneShotTimer> auto_login_timer_; |
246 | 247 |
247 // Public session auto-login timeout, in milliseconds. | 248 // Public session auto-login timeout, in milliseconds. |
248 int public_session_auto_login_delay_; | 249 int public_session_auto_login_delay_; |
249 | 250 |
250 // Username for public session auto-login. | 251 // AccountId for public session auto-login. |
251 std::string public_session_auto_login_username_; | 252 AccountId public_session_auto_login_account_id_ = EmptyAccountId(); |
252 | 253 |
253 // Used to execute login operations. | 254 // Used to execute login operations. |
254 scoped_ptr<LoginPerformer> login_performer_; | 255 scoped_ptr<LoginPerformer> login_performer_; |
255 | 256 |
256 // Delegate to forward all authentication status events to. | 257 // Delegate to forward all authentication status events to. |
257 // Tests can use this to receive authentication status events. | 258 // Tests can use this to receive authentication status events. |
258 AuthStatusConsumer* auth_status_consumer_ = nullptr; | 259 AuthStatusConsumer* auth_status_consumer_ = nullptr; |
259 | 260 |
260 // AccountId of the last login attempt. | 261 // AccountId of the last login attempt. |
261 AccountId last_login_attempt_account_id_ = EmptyAccountId(); | 262 AccountId last_login_attempt_account_id_ = EmptyAccountId(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 334 |
334 // Factory of callbacks. | 335 // Factory of callbacks. |
335 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 336 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
336 | 337 |
337 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 338 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
338 }; | 339 }; |
339 | 340 |
340 } // namespace chromeos | 341 } // namespace chromeos |
341 | 342 |
342 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 343 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |