Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 2060623002: Implementation of Device End of Life Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify browsertest Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/macros.h" 16 #include "base/macros.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/eol_notification.h"
xiyuan 2016/06/16 22:41:28 Forward clear in line 49 is enough, move the inclu
xiaoyinh(OOO Sep 11-29) 2016/06/17 04:07:35 Done.
22 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" 23 #include "chrome/browser/chromeos/hats/hats_notification_controller.h"
23 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 24 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
24 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" 25 #include "chrome/browser/chromeos/login/signin/token_handle_util.h"
25 #include "chrome/browser/chromeos/login/ui/login_display.h" 26 #include "chrome/browser/chromeos/login/ui/login_display.h"
26 #include "chrome/browser/chromeos/settings/cros_settings.h" 27 #include "chrome/browser/chromeos/settings/cros_settings.h"
27 #include "chrome/browser/chromeos/settings/device_settings_service.h" 28 #include "chrome/browser/chromeos/settings/device_settings_service.h"
29 #include "chromeos/dbus/update_engine_client.h"
xiyuan 2016/06/16 22:41:28 Do we need this?
xiaoyinh(OOO Sep 11-29) 2016/06/17 04:07:35 Removed.
28 #include "chromeos/login/auth/login_performer.h" 30 #include "chromeos/login/auth/login_performer.h"
29 #include "chromeos/login/auth/user_context.h" 31 #include "chromeos/login/auth/user_context.h"
30 #include "components/signin/core/account_id/account_id.h" 32 #include "components/signin/core/account_id/account_id.h"
31 #include "components/user_manager/user.h" 33 #include "components/user_manager/user.h"
32 #include "content/public/browser/notification_observer.h" 34 #include "content/public/browser/notification_observer.h"
33 #include "content/public/browser/notification_registrar.h" 35 #include "content/public/browser/notification_registrar.h"
34 #include "ui/gfx/geometry/rect.h" 36 #include "ui/gfx/geometry/rect.h"
35 #include "url/gurl.h" 37 #include "url/gurl.h"
36 38
37 namespace base { 39 namespace base {
38 class ListValue; 40 class ListValue;
39 } 41 }
40 42
41 namespace chromeos { 43 namespace chromeos {
42 44
43 class BootstrapUserContextInitializer; 45 class BootstrapUserContextInitializer;
44 class CrosSettings; 46 class CrosSettings;
45 class LoginDisplayHost; 47 class LoginDisplayHost;
46 class OAuth2TokenInitializer; 48 class OAuth2TokenInitializer;
49 class EolNotification;
47 50
48 namespace login { 51 namespace login {
49 class NetworkStateHelper; 52 class NetworkStateHelper;
50 } 53 }
51 54
52 // ExistingUserController is used to handle login when someone has 55 // ExistingUserController is used to handle login when someone has
53 // already logged into the machine. 56 // already logged into the machine.
54 // To use ExistingUserController create an instance of it and invoke Init. 57 // To use ExistingUserController create an instance of it and invoke Init.
55 // When Init is called it creates LoginDisplay instance which encapsulates 58 // When Init is called it creates LoginDisplay instance which encapsulates
56 // all login UI implementation. 59 // all login UI implementation.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const UserContext& user_context); 248 const UserContext& user_context);
246 249
247 // Callback invoked when |oauth2_token_initializer_| has finished. 250 // Callback invoked when |oauth2_token_initializer_| has finished.
248 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); 251 void OnOAuth2TokensFetched(bool success, const UserContext& user_context);
249 252
250 // Callback invoked when |token_handle_util_| finishes token check. 253 // Callback invoked when |token_handle_util_| finishes token check.
251 void OnTokenHandleChecked( 254 void OnTokenHandleChecked(
252 const AccountId&, 255 const AccountId&,
253 TokenHandleUtil::TokenHandleStatus token_handle_status); 256 TokenHandleUtil::TokenHandleStatus token_handle_status);
254 257
258 // Used to Add/Update Eol notification
259 std::unique_ptr<EolNotification> eol_notification_;
xiyuan 2016/06/16 22:41:28 This does not feel belong here. It is user session
xiaoyinh(OOO Sep 11-29) 2016/06/17 04:07:35 Hi Xiyuan, Could you elaborate what could go wron
xiyuan 2016/06/17 15:21:27 ExistingUserController is part of the login screen
260
255 // Public session auto-login timer. 261 // Public session auto-login timer.
256 std::unique_ptr<base::OneShotTimer> auto_login_timer_; 262 std::unique_ptr<base::OneShotTimer> auto_login_timer_;
257 263
258 // Public session auto-login timeout, in milliseconds. 264 // Public session auto-login timeout, in milliseconds.
259 int public_session_auto_login_delay_; 265 int public_session_auto_login_delay_;
260 266
261 // AccountId for public session auto-login. 267 // AccountId for public session auto-login.
262 AccountId public_session_auto_login_account_id_ = EmptyAccountId(); 268 AccountId public_session_auto_login_account_id_ = EmptyAccountId();
263 269
264 // Used to execute login operations. 270 // Used to execute login operations.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 357
352 // Factory of callbacks. 358 // Factory of callbacks.
353 base::WeakPtrFactory<ExistingUserController> weak_factory_; 359 base::WeakPtrFactory<ExistingUserController> weak_factory_;
354 360
355 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 361 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
356 }; 362 };
357 363
358 } // namespace chromeos 364 } // namespace chromeos
359 365
360 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 366 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698