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

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

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Subscription fixes Created 8 years, 3 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_WEBUI_LOGIN_DISPLAY_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Login display we are using. 83 // Login display we are using.
84 WebUILoginDisplay* webui_login_display_; 84 WebUILoginDisplay* webui_login_display_;
85 85
86 // True if the login display is the current screen. 86 // True if the login display is the current screen.
87 bool is_showing_login_; 87 bool is_showing_login_;
88 88
89 // True if NOTIFICATION_WALLPAPER_ANIMATION_FINISHED notification has been 89 // True if NOTIFICATION_WALLPAPER_ANIMATION_FINISHED notification has been
90 // received. 90 // received.
91 bool is_wallpaper_loaded_; 91 bool is_wallpaper_loaded_;
92 92
93 // True if WebUI is initialized hidden in parallel with wallpaper animation.
94 // Otherwise it is postponed and only starts initializing when animation
95 // finishes. Makes sense only if |waiting_for_wallpaper_load_| is true.
96 // By default is true. Could be used to tune performance if needed.
97 bool initialize_webui_in_parallel_;
98
99 // Stores status area current visibility to be applied once login WebUI 93 // Stores status area current visibility to be applied once login WebUI
100 // is shown. 94 // is shown.
101 bool status_area_saved_visibility_; 95 bool status_area_saved_visibility_;
102 96
103 // True if should not show WebUI on first StartWizard/StartSignInScreen call 97 // If true, WebUI is initialized in a hidden state and shown after the
104 // but wait for wallpaper load animation to finish. 98 // wallpaper animation is finished (when it is enabled) or the user pods have
105 // OOBE/sign in WebUI is either initialized hidden or postponed i.e. loaded 99 // been loaded (otherwise).
106 // only when wallpaper animation finishes. 100 // By default is true. Could be used to tune performance if needed.
101 bool initialize_webui_hidden_;
102
103 // True if WebUI is initialized in hidden state and we're waiting for
104 // wallpaper load animation to finish.
107 bool waiting_for_wallpaper_load_; 105 bool waiting_for_wallpaper_load_;
108 106
107 // True if WebUI is initialized in hidden state and we're waiting for user
108 // pods to load.
109 bool waiting_for_user_pods_;
110
109 content::NotificationRegistrar registrar_; 111 content::NotificationRegistrar registrar_;
110 112
111 // How many times renderer has crashed. 113 // How many times renderer has crashed.
112 int crash_count_; 114 int crash_count_;
113 115
114 // Way to restore if renderer have crashed. 116 // Way to restore if renderer have crashed.
115 enum { 117 enum {
116 RESTORE_UNKNOWN, 118 RESTORE_UNKNOWN,
117 RESTORE_WIZARD, 119 RESTORE_WIZARD,
118 RESTORE_SIGN_IN 120 RESTORE_SIGN_IN
119 } restore_path_; 121 } restore_path_;
120 122
121 // Stored parameters for StartWizard, required to restore in case of crash. 123 // Stored parameters for StartWizard, required to restore in case of crash.
122 std::string wizard_first_screen_name_; 124 std::string wizard_first_screen_name_;
123 scoped_ptr<DictionaryValue> wizard_screen_parameters_; 125 scoped_ptr<DictionaryValue> wizard_screen_parameters_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); 127 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost);
126 }; 128 };
127 129
128 } // namespace chromeos 130 } // namespace chromeos
129 131
130 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ 132 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698