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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h

Issue 398753004: [cros] Move User class to user_manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 12 matching lines...) Expand all
23 explicit SupervisedUserLoginFlow(const std::string& user_id); 23 explicit SupervisedUserLoginFlow(const std::string& user_id);
24 virtual ~SupervisedUserLoginFlow(); 24 virtual ~SupervisedUserLoginFlow();
25 25
26 // ExtendedUserFlow overrides. 26 // ExtendedUserFlow overrides.
27 virtual bool CanLockScreen() OVERRIDE; 27 virtual bool CanLockScreen() OVERRIDE;
28 virtual bool ShouldLaunchBrowser() OVERRIDE; 28 virtual bool ShouldLaunchBrowser() OVERRIDE;
29 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; 29 virtual bool ShouldSkipPostLoginScreens() OVERRIDE;
30 virtual bool HandleLoginFailure(const AuthFailure& failure) OVERRIDE; 30 virtual bool HandleLoginFailure(const AuthFailure& failure) OVERRIDE;
31 virtual void HandleLoginSuccess(const UserContext& context) OVERRIDE; 31 virtual void HandleLoginSuccess(const UserContext& context) OVERRIDE;
32 virtual bool HandlePasswordChangeDetected() OVERRIDE; 32 virtual bool HandlePasswordChangeDetected() OVERRIDE;
33 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status) 33 virtual void HandleOAuthTokenStatusChange(
34 OVERRIDE; 34 user_manager::User::OAuthTokenStatus status) OVERRIDE;
35 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE; 35 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE;
36 36
37 // ExtendedAuthenticator::NewAuthStatusConsumer overrides. 37 // ExtendedAuthenticator::NewAuthStatusConsumer overrides.
38 virtual void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) 38 virtual void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state)
39 OVERRIDE; 39 OVERRIDE;
40 40
41 private: 41 private:
42 void Launch(); 42 void Launch();
43 void Finish(); 43 void Finish();
44 44
(...skipping 11 matching lines...) Expand all
56 UserContext context_; 56 UserContext context_;
57 Profile* profile_; 57 Profile* profile_;
58 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_; 58 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow); 60 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow);
61 }; 61 };
62 62
63 } // namespace chromeos 63 } // namespace chromeos
64 64
65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H _ 65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698