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

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

Issue 2835473002: Chromad: Allow offline login. (Closed)
Patch Set: Rebase+fix test compilation Created 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 20 matching lines...) Expand all
31 #include "components/user_manager/user.h" 31 #include "components/user_manager/user.h"
32 #include "content/public/browser/notification_observer.h" 32 #include "content/public/browser/notification_observer.h"
33 #include "content/public/browser/notification_registrar.h" 33 #include "content/public/browser/notification_registrar.h"
34 #include "ui/gfx/geometry/rect.h" 34 #include "ui/gfx/geometry/rect.h"
35 #include "url/gurl.h" 35 #include "url/gurl.h"
36 36
37 namespace base { 37 namespace base {
38 class ListValue; 38 class ListValue;
39 } 39 }
40 40
41 namespace authpolicy {
42
43 class ActiveDirectoryAccountData;
44
45 } // namespace authpolicy
xiyuan 2017/04/21 14:48:14 nit: Follow the style in line 37-39 for forward de
Roman Sorokin (ftl) 2017/04/24 16:21:28 Done.
46
41 namespace chromeos { 47 namespace chromeos {
42 48
49 class AuthPolicyLoginHelper;
43 class BootstrapUserContextInitializer; 50 class BootstrapUserContextInitializer;
44 class CrosSettings; 51 class CrosSettings;
45 class LoginDisplayHost; 52 class LoginDisplayHost;
46 class OAuth2TokenInitializer; 53 class OAuth2TokenInitializer;
47 54
48 namespace login { 55 namespace login {
49 class NetworkStateHelper; 56 class NetworkStateHelper;
50 } 57 }
51 58
52 // ExistingUserController is used to handle login when someone has 59 // ExistingUserController is used to handle login when someone has
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 284
278 // Callback invoked when |token_handle_util_| finishes token check. 285 // Callback invoked when |token_handle_util_| finishes token check.
279 void OnTokenHandleChecked( 286 void OnTokenHandleChecked(
280 const AccountId&, 287 const AccountId&,
281 TokenHandleUtil::TokenHandleStatus token_handle_status); 288 TokenHandleUtil::TokenHandleStatus token_handle_status);
282 289
283 // Clear the recorded displayed email, displayed name, given name so it won't 290 // Clear the recorded displayed email, displayed name, given name so it won't
284 // affect any future attempts. 291 // affect any future attempts.
285 void ClearRecordedNames(); 292 void ClearRecordedNames();
286 293
294 // Callback invoked after authentication against Active Directory server.
295 void OnActiveDirectoryAuth(
296 authpolicy::ErrorType error,
297 const authpolicy::ActiveDirectoryAccountData& account_data);
298
287 // Public session auto-login timer. 299 // Public session auto-login timer.
288 std::unique_ptr<base::OneShotTimer> auto_login_timer_; 300 std::unique_ptr<base::OneShotTimer> auto_login_timer_;
289 301
290 // Auto-login timeout, in milliseconds. 302 // Auto-login timeout, in milliseconds.
291 int auto_login_delay_; 303 int auto_login_delay_;
292 304
293 // AccountId for public session auto-login. 305 // AccountId for public session auto-login.
294 AccountId public_session_auto_login_account_id_ = EmptyAccountId(); 306 AccountId public_session_auto_login_account_id_ = EmptyAccountId();
295 307
296 // AccountId for ARC kiosk auto-login. 308 // AccountId for ARC kiosk auto-login.
297 AccountId arc_kiosk_auto_login_account_id_ = EmptyAccountId(); 309 AccountId arc_kiosk_auto_login_account_id_ = EmptyAccountId();
298 310
299 // Used to execute login operations. 311 // Used to execute login operations.
300 std::unique_ptr<LoginPerformer> login_performer_; 312 std::unique_ptr<LoginPerformer> login_performer_;
301 313
314 // Used to execute login to AuthPolicy service. It provides authentication
315 // against Active Directory server.
316 std::unique_ptr<AuthPolicyLoginHelper> authpolicy_login_helper_;
317
302 // Delegate to forward all authentication status events to. 318 // Delegate to forward all authentication status events to.
303 // Tests can use this to receive authentication status events. 319 // Tests can use this to receive authentication status events.
304 AuthStatusConsumer* auth_status_consumer_ = nullptr; 320 AuthStatusConsumer* auth_status_consumer_ = nullptr;
305 321
306 // AccountId of the last login attempt. 322 // AccountId of the last login attempt.
307 AccountId last_login_attempt_account_id_ = EmptyAccountId(); 323 AccountId last_login_attempt_account_id_ = EmptyAccountId();
308 324
309 // Whether the last login attempt was an auto login. 325 // Whether the last login attempt was an auto login.
310 bool last_login_attempt_was_auto_login_ = false; 326 bool last_login_attempt_was_auto_login_ = false;
311 327
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 408
393 // Factory of callbacks. 409 // Factory of callbacks.
394 base::WeakPtrFactory<ExistingUserController> weak_factory_; 410 base::WeakPtrFactory<ExistingUserController> weak_factory_;
395 411
396 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 412 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
397 }; 413 };
398 414
399 } // namespace chromeos 415 } // namespace chromeos
400 416
401 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 417 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698