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

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

Issue 14200033: [cros] Rename BaseLoginDisplayHost to LoginDisplayHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 8 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 | Annotate | Revision Log
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_BASE_LOGIN_DISPLAY_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/chromeos/login/login_display.h" 13 #include "chrome/browser/chromeos/login/login_display.h"
14 #include "chrome/browser/chromeos/login/login_display_host.h" 14 #include "chrome/browser/chromeos/login/login_display_host.h"
15 #include "chrome/browser/chromeos/settings/device_settings_service.h" 15 #include "chrome/browser/chromeos/settings/device_settings_service.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/browser/web_contents_observer.h"
Denis Kuznetsov (DE-MUC) 2013/04/18 11:14:11 Why do we need it here?
Nikita (slow) 2013/04/18 11:26:17 Good catch, that's part of the upcoming CL, remove
18 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
19 20
20 class PrefService; 21 class PrefService;
21 22
22 namespace policy { 23 namespace policy {
23 class AutoEnrollmentClient; 24 class AutoEnrollmentClient;
24 } // namespace policy 25 } // namespace policy
25 26
26 namespace chromeos { 27 namespace chromeos {
27 28
28 class ExistingUserController; 29 class ExistingUserController;
29 class WizardController; 30 class WizardController;
30 31
31 // An abstract base class that defines OOBE/login screen host. 32 // An implementation class for OOBE/login screen host.
32 // It encapsulates controllers, background integration and flow. 33 // It encapsulates controllers, background integration and flow.
33 class BaseLoginDisplayHost : public LoginDisplayHost, 34 class LoginDisplayHostImpl : public LoginDisplayHost,
34 public content::NotificationObserver { 35 public content::NotificationObserver {
35 public: 36 public:
36 explicit BaseLoginDisplayHost(const gfx::Rect& background_bounds); 37 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds);
37 virtual ~BaseLoginDisplayHost(); 38 virtual ~LoginDisplayHostImpl();
38 39
39 // Returns the default LoginDispalyHost instance if it has been created. 40 // Returns the default LoginDispalyHost instance if it has been created.
40 static LoginDisplayHost* default_host() { 41 static LoginDisplayHost* default_host() {
41 return default_host_; 42 return default_host_;
42 } 43 }
43 44
44 // LoginDisplayHost implementation: 45 // LoginDisplayHost implementation:
45 virtual void BeforeSessionStart() OVERRIDE; 46 virtual void BeforeSessionStart() OVERRIDE;
46 virtual void OnSessionStart() OVERRIDE; 47 virtual void OnSessionStart() OVERRIDE;
47 virtual void OnCompleteLogin() OVERRIDE; 48 virtual void OnCompleteLogin() OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void OnAutoEnrollmentClientDone(); 85 void OnAutoEnrollmentClientDone();
85 86
86 // Forces auto-enrollment on the appropriate controller. 87 // Forces auto-enrollment on the appropriate controller.
87 void ForceAutoEnrollment(); 88 void ForceAutoEnrollment();
88 89
89 // Used to calculate position of the screens and background. 90 // Used to calculate position of the screens and background.
90 gfx::Rect background_bounds_; 91 gfx::Rect background_bounds_;
91 92
92 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
93 94
94 base::WeakPtrFactory<BaseLoginDisplayHost> pointer_factory_; 95 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_;
95 96
96 // Default LoginDisplayHost. 97 // Default LoginDisplayHost.
97 static LoginDisplayHost* default_host_; 98 static LoginDisplayHost* default_host_;
98 99
99 // Sign in screen controller. 100 // Sign in screen controller.
100 scoped_ptr<ExistingUserController> sign_in_controller_; 101 scoped_ptr<ExistingUserController> sign_in_controller_;
101 102
102 // OOBE and some screens (camera, recovery) controller. 103 // OOBE and some screens (camera, recovery) controller.
103 scoped_ptr<WizardController> wizard_controller_; 104 scoped_ptr<WizardController> wizard_controller_;
104 105
105 // Client for enterprise auto-enrollment check. 106 // Client for enterprise auto-enrollment check.
106 scoped_ptr<policy::AutoEnrollmentClient> auto_enrollment_client_; 107 scoped_ptr<policy::AutoEnrollmentClient> auto_enrollment_client_;
107 108
108 // Has ShutdownDisplayHost() already been called? Used to avoid posting our 109 // Has ShutdownDisplayHost() already been called? Used to avoid posting our
109 // own deletion to the message loop twice if the user logs out while we're 110 // own deletion to the message loop twice if the user logs out while we're
110 // still in the process of cleaning up after login (http://crbug.com/134463). 111 // still in the process of cleaning up after login (http://crbug.com/134463).
111 bool shutting_down_; 112 bool shutting_down_;
112 113
113 // Whether progress bar is shown on the OOBE page. 114 // Whether progress bar is shown on the OOBE page.
114 bool oobe_progress_bar_visible_; 115 bool oobe_progress_bar_visible_;
115 116
116 // True if session start is in progress. 117 // True if session start is in progress.
117 bool session_starting_; 118 bool session_starting_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(BaseLoginDisplayHost); 120 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl);
120 }; 121 };
121 122
122 } // namespace chromeos 123 } // namespace chromeos
123 124
124 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_display_host.h ('k') | chrome/browser/chromeos/login/login_display_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698