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

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

Issue 7867044: PART1: Initiated the SignedSettings refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up some debug output. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/chromeos/wm_message_listener.h" 23 #include "chrome/browser/chromeos/wm_message_listener.h"
24 #include "content/common/notification_observer.h" 24 #include "content/common/notification_observer.h"
25 #include "content/common/notification_registrar.h" 25 #include "content/common/notification_registrar.h"
26 #include "googleurl/src/gurl.h" 26 #include "googleurl/src/gurl.h"
27 #include "testing/gtest/include/gtest/gtest_prod.h" 27 #include "testing/gtest/include/gtest/gtest_prod.h"
28 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
29 29
30 namespace chromeos { 30 namespace chromeos {
31 31
32 class LoginDisplayHost; 32 class LoginDisplayHost;
33 class UserCrosSettingsProvider; 33 class CrosSettings;
34 34
35 // ExistingUserController is used to handle login when someone has 35 // ExistingUserController is used to handle login when someone has
36 // already logged into the machine. 36 // already logged into the machine.
37 // To use ExistingUserController create an instance of it and invoke Init. 37 // To use ExistingUserController create an instance of it and invoke Init.
38 // When Init is called it creates LoginDisplay instance which encapsulates 38 // When Init is called it creates LoginDisplay instance which encapsulates
39 // all login UI implementation. 39 // all login UI implementation.
40 // ExistingUserController maintains it's own life cycle and deletes itself when 40 // ExistingUserController maintains it's own life cycle and deletes itself when
41 // the user logs in (or chooses to see other settings). 41 // the user logs in (or chooses to see other settings).
42 class ExistingUserController : public LoginDisplay::Delegate, 42 class ExistingUserController : public LoginDisplay::Delegate,
43 public NotificationObserver, 43 public NotificationObserver,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 // Number of login attempts. Used to show help link when > 1 unsuccessful 170 // Number of login attempts. Used to show help link when > 1 unsuccessful
171 // logins for the same user. 171 // logins for the same user.
172 size_t num_login_attempts_; 172 size_t num_login_attempts_;
173 173
174 // Pointer to the current instance of the controller to be used by 174 // Pointer to the current instance of the controller to be used by
175 // automation tests. 175 // automation tests.
176 static ExistingUserController* current_controller_; 176 static ExistingUserController* current_controller_;
177 177
178 // Triggers prefetching of user settings. 178 // Triggers prefetching of user settings.
179 scoped_ptr<UserCrosSettingsProvider> user_settings_; 179 CrosSettings* user_settings_;
180 180
181 // URL to append to start Guest mode with. 181 // URL to append to start Guest mode with.
182 GURL guest_mode_url_; 182 GURL guest_mode_url_;
183 183
184 // Used for user image changed notifications. 184 // Used for user image changed notifications.
185 NotificationRegistrar registrar_; 185 NotificationRegistrar registrar_;
186 186
187 // Factory of callbacks. 187 // Factory of callbacks.
188 ScopedRunnableMethodFactory<ExistingUserController> method_factory_; 188 ScopedRunnableMethodFactory<ExistingUserController> method_factory_;
Denis Lagno 2011/09/20 14:05:22 you seem to replace ScopedFactory with base::Bind
pastarmovj 2011/09/20 17:11:52 You are right base::Bind by itself does no magic.
189 189
190 // Whether everything is ready to launch the browser. 190 // Whether everything is ready to launch the browser.
191 bool ready_for_browser_launch_; 191 bool ready_for_browser_launch_;
192 192
193 // Whether two factor credentials were used. 193 // Whether two factor credentials were used.
194 bool two_factor_credentials_; 194 bool two_factor_credentials_;
195 195
196 // Used to verify ownership before starting enterprise enrollment. 196 // Used to verify ownership before starting enterprise enrollment.
197 scoped_ptr<OwnershipStatusChecker> ownership_checker_; 197 scoped_ptr<OwnershipStatusChecker> ownership_checker_;
198 198
199 // Whether it's first login to the device and this user will be owner. 199 // Whether it's first login to the device and this user will be owner.
200 bool is_owner_login_; 200 bool is_owner_login_;
201 201
202 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); 202 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin);
203 203
204 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 204 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
205 }; 205 };
206 206
207 } // namespace chromeos 207 } // namespace chromeos
208 208
209 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 209 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698