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

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

Issue 101283003: Add first implemenation for SU password sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 7 years 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_MANAGED_LOCALLY_MANAGED_USER_LOGIN_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_LOGIN_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_LOGIN_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "chrome/browser/chromeos/login/user_flow.h" 12 #include "chrome/browser/chromeos/login/user_flow.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // UserFlow implementation for signing in locally managed user. 16 // UserFlow implementation for signing in locally managed user.
17 class LocallyManagedUserLoginFlow : public ExtendedUserFlow { 17 class SupervisedUserLoginFlow : public ExtendedUserFlow {
18 public: 18 public:
19 explicit LocallyManagedUserLoginFlow(const std::string& user_id); 19 explicit SupervisedUserLoginFlow(const std::string& user_id);
20 virtual ~LocallyManagedUserLoginFlow(); 20 virtual ~SupervisedUserLoginFlow();
21 21
22 // Registers flow preferences. 22 // Registers flow preferences.
23 // static void RegisterPrefs(PrefRegistrySimple* registry); 23 // static void RegisterPrefs(PrefRegistrySimple* registry);
24 24
25 virtual bool ShouldLaunchBrowser() OVERRIDE; 25 virtual bool ShouldLaunchBrowser() OVERRIDE;
26 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; 26 virtual bool ShouldSkipPostLoginScreens() OVERRIDE;
27 virtual bool HandleLoginFailure(const LoginFailure& failure) OVERRIDE; 27 virtual bool HandleLoginFailure(const LoginFailure& failure) OVERRIDE;
28 virtual bool HandlePasswordChangeDetected() OVERRIDE; 28 virtual bool HandlePasswordChangeDetected() OVERRIDE;
29 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status) 29 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status)
30 OVERRIDE; 30 OVERRIDE;
31 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE; 31 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE;
32 32
33 virtual void OnSyncSetupDataLoaded(const std::string& token); 33 virtual void OnSyncSetupDataLoaded(const std::string& token);
34 virtual void ConfigureSync(const std::string& token); 34 virtual void ConfigureSync(const std::string& token);
35 35
36 private: 36 private:
37 void Launch(); 37 void Launch();
38 38
39 bool data_loaded_; 39 bool data_loaded_;
40 Profile* profile_; 40 Profile* profile_;
41 base::WeakPtrFactory<LocallyManagedUserLoginFlow> weak_factory_; 41 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserLoginFlow); 43 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow);
44 }; 44 };
45 45
46 } // namespace chromeos 46 } // namespace chromeos
47 47
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_LOGIN_FLOW _H_ 48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_LOGIN_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698