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

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

Issue 656283002: [session_manager] Move user session initialization code out of ExistingUserController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 2 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual void OnAuthFailure(const AuthFailure& error) override; 149 virtual void OnAuthFailure(const AuthFailure& error) override;
150 virtual void OnAuthSuccess(const UserContext& user_context) override; 150 virtual void OnAuthSuccess(const UserContext& user_context) override;
151 virtual void OnOffTheRecordAuthSuccess() override; 151 virtual void OnOffTheRecordAuthSuccess() override;
152 virtual void OnPasswordChangeDetected() override; 152 virtual void OnPasswordChangeDetected() override;
153 virtual void WhiteListCheckFailed(const std::string& email) override; 153 virtual void WhiteListCheckFailed(const std::string& email) override;
154 virtual void PolicyLoadFailed() override; 154 virtual void PolicyLoadFailed() override;
155 virtual void OnOnlineChecked( 155 virtual void OnOnlineChecked(
156 const std::string& username, bool success) override; 156 const std::string& username, bool success) override;
157 157
158 // LoginUtils::Delegate implementation: 158 // LoginUtils::Delegate implementation:
159 virtual void OnProfilePrepared(Profile* profile) override; 159 virtual void OnProfilePrepared(Profile* profile,
160 bool browser_launched) override;
160 161
161 // Called when device settings change. 162 // Called when device settings change.
162 void DeviceSettingsChanged(); 163 void DeviceSettingsChanged();
163 164
164 // Starts WizardController with the specified screen.
165 void ActivateWizard(const std::string& screen_name);
166
167 // Returns corresponding native window. 165 // Returns corresponding native window.
168 gfx::NativeWindow GetNativeWindow() const; 166 gfx::NativeWindow GetNativeWindow() const;
169 167
170 // Adds first-time login URLs.
171 void InitializeStartUrls() const;
172
173 // Show error message. |error_id| error message ID in resources. 168 // Show error message. |error_id| error message ID in resources.
174 // If |details| string is not empty, it specify additional error text 169 // If |details| string is not empty, it specify additional error text
175 // provided by authenticator, it is not localized. 170 // provided by authenticator, it is not localized.
176 void ShowError(int error_id, const std::string& details); 171 void ShowError(int error_id, const std::string& details);
177 172
178 // Shows Gaia page because password change was detected. 173 // Shows Gaia page because password change was detected.
179 void ShowGaiaPasswordChanged(const std::string& username); 174 void ShowGaiaPasswordChanged(const std::string& username);
180 175
181 // Handles result of ownership check and starts enterprise or kiosk enrollment 176 // Handles result of ownership check and starts enterprise or kiosk enrollment
182 // if applicable. 177 // if applicable.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // have been retrieved. Selects the first layout from the list and continues 223 // have been retrieved. Selects the first layout from the list and continues
229 // login. 224 // login.
230 void SetPublicSessionKeyboardLayoutAndLogin( 225 void SetPublicSessionKeyboardLayoutAndLogin(
231 const UserContext& user_context, 226 const UserContext& user_context,
232 scoped_ptr<base::ListValue> keyboard_layouts); 227 scoped_ptr<base::ListValue> keyboard_layouts);
233 228
234 // Starts the actual login process for a public session. Invoked when all 229 // Starts the actual login process for a public session. Invoked when all
235 // preconditions have been verified. 230 // preconditions have been verified.
236 void LoginAsPublicSessionInternal(const UserContext& user_context); 231 void LoginAsPublicSessionInternal(const UserContext& user_context);
237 232
233 // Performs sets of actions right prior to login has been started.
234 void PerformPreLoginActions(const UserContext& user_context);
235
236 // Performs set of actions when login has been completed or has been
237 // cancelled. If |start_public_session_timer| is true than public session
238 // auto-login timer is started.
239 void PerformLoginFinishedActions(bool start_public_session_timer);
240
238 // Public session auto-login timer. 241 // Public session auto-login timer.
239 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; 242 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_;
240 243
241 // Public session auto-login timeout, in milliseconds. 244 // Public session auto-login timeout, in milliseconds.
242 int public_session_auto_login_delay_; 245 int public_session_auto_login_delay_;
243 246
244 // Username for public session auto-login. 247 // Username for public session auto-login.
245 std::string public_session_auto_login_username_; 248 std::string public_session_auto_login_username_;
246 249
247 // Used to execute login operations. 250 // Used to execute login operations.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 337
335 // Factory of callbacks. 338 // Factory of callbacks.
336 base::WeakPtrFactory<ExistingUserController> weak_factory_; 339 base::WeakPtrFactory<ExistingUserController> weak_factory_;
337 340
338 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 341 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
339 }; 342 };
340 343
341 } // namespace chromeos 344 } // namespace chromeos
342 345
343 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 346 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698