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

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

Issue 156493004: Add the ability to show a demo app on OOBE if a machine is derelict. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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_LOGIN_DISPLAY_HOST_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/chromeos/login/app_launch_controller.h" 14 #include "chrome/browser/chromeos/login/app_launch_controller.h"
15 #include "chrome/browser/chromeos/login/auth_prewarmer.h" 15 #include "chrome/browser/chromeos/login/auth_prewarmer.h"
16 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h"
bartfab (slow) 2014/02/13 19:51:53 Nit: Forward-declare |DemoAppLauncher| here and in
rkc 2014/02/13 23:22:01 Done.
16 #include "chrome/browser/chromeos/login/existing_user_controller.h" 17 #include "chrome/browser/chromeos/login/existing_user_controller.h"
17 #include "chrome/browser/chromeos/login/login_display.h" 18 #include "chrome/browser/chromeos/login/login_display.h"
18 #include "chrome/browser/chromeos/login/login_display_host.h" 19 #include "chrome/browser/chromeos/login/login_display_host.h"
19 #include "chrome/browser/chromeos/login/wizard_controller.h" 20 #include "chrome/browser/chromeos/login/wizard_controller.h"
20 #include "chrome/browser/chromeos/settings/device_settings_service.h" 21 #include "chrome/browser/chromeos/settings/device_settings_service.h"
21 #include "chromeos/audio/cras_audio_handler.h" 22 #include "chromeos/audio/cras_audio_handler.h"
22 #include "chromeos/dbus/session_manager_client.h" 23 #include "chromeos/dbus/session_manager_client.h"
23 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
24 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
25 #include "content/public/browser/web_contents_observer.h" 26 #include "content/public/browser/web_contents_observer.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual WizardController* GetWizardController() OVERRIDE; 75 virtual WizardController* GetWizardController() OVERRIDE;
75 virtual AppLaunchController* GetAppLaunchController() OVERRIDE; 76 virtual AppLaunchController* GetAppLaunchController() OVERRIDE;
76 virtual void StartUserAdding( 77 virtual void StartUserAdding(
77 const base::Closure& completion_callback) OVERRIDE; 78 const base::Closure& completion_callback) OVERRIDE;
78 virtual void StartSignInScreen(const LoginScreenContext& context) OVERRIDE; 79 virtual void StartSignInScreen(const LoginScreenContext& context) OVERRIDE;
79 virtual void ResumeSignInScreen() OVERRIDE; 80 virtual void ResumeSignInScreen() OVERRIDE;
80 virtual void OnPreferencesChanged() OVERRIDE; 81 virtual void OnPreferencesChanged() OVERRIDE;
81 virtual void PrewarmAuthentication() OVERRIDE; 82 virtual void PrewarmAuthentication() OVERRIDE;
82 virtual void StartAppLaunch(const std::string& app_id, 83 virtual void StartAppLaunch(const std::string& app_id,
83 bool diagnostic_mode) OVERRIDE; 84 bool diagnostic_mode) OVERRIDE;
85 virtual void StartDemoAppLaunch() OVERRIDE;
84 86
85 // Creates WizardController instance. 87 // Creates WizardController instance.
86 WizardController* CreateWizardController(); 88 WizardController* CreateWizardController();
87 89
88 // Called when the first browser window is created, but before it's shown. 90 // Called when the first browser window is created, but before it's shown.
89 void OnBrowserCreated(); 91 void OnBrowserCreated();
90 92
91 // Returns instance of the OOBE WebUI. 93 // Returns instance of the OOBE WebUI.
92 OobeUI* GetOobeUI() const; 94 OobeUI* GetOobeUI() const;
93 95
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 198
197 // Sign in screen controller. 199 // Sign in screen controller.
198 scoped_ptr<ExistingUserController> sign_in_controller_; 200 scoped_ptr<ExistingUserController> sign_in_controller_;
199 201
200 // OOBE and some screens (camera, recovery) controller. 202 // OOBE and some screens (camera, recovery) controller.
201 scoped_ptr<WizardController> wizard_controller_; 203 scoped_ptr<WizardController> wizard_controller_;
202 204
203 // App launch controller. 205 // App launch controller.
204 scoped_ptr<AppLaunchController> app_launch_controller_; 206 scoped_ptr<AppLaunchController> app_launch_controller_;
205 207
208 // Demo app launcher.
209 scoped_ptr<DemoAppLauncher> demo_app_launcher_;
210
206 // Client for enterprise auto-enrollment check. 211 // Client for enterprise auto-enrollment check.
207 scoped_ptr<policy::AutoEnrollmentClient> auto_enrollment_client_; 212 scoped_ptr<policy::AutoEnrollmentClient> auto_enrollment_client_;
208 213
209 // Has ShutdownDisplayHost() already been called? Used to avoid posting our 214 // Has ShutdownDisplayHost() already been called? Used to avoid posting our
210 // own deletion to the message loop twice if the user logs out while we're 215 // own deletion to the message loop twice if the user logs out while we're
211 // still in the process of cleaning up after login (http://crbug.com/134463). 216 // still in the process of cleaning up after login (http://crbug.com/134463).
212 bool shutting_down_; 217 bool shutting_down_;
213 218
214 // Whether progress bar is shown on the OOBE page. 219 // Whether progress bar is shown on the OOBE page.
215 bool oobe_progress_bar_visible_; 220 bool oobe_progress_bar_visible_;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // feedback is enabled. Otherwise, startup sound should be played 302 // feedback is enabled. Otherwise, startup sound should be played
298 // in any case. 303 // in any case.
299 bool startup_sound_honors_spoken_feedback_; 304 bool startup_sound_honors_spoken_feedback_;
300 305
301 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); 306 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl);
302 }; 307 };
303 308
304 } // namespace chromeos 309 } // namespace chromeos
305 310
306 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_ 311 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698