1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_LOGIN_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_LOGIN_FLOW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h"
11 #include "base/strings/string16.h"
12 #include "chrome/browser/chromeos/login/user_flow.h"
16 // UserFlow implementation for signing in locally managed user.
17 class SupervisedUserLoginFlow
: public ExtendedUserFlow
{
19 explicit SupervisedUserLoginFlow(const std::string
& user_id
);
20 virtual ~SupervisedUserLoginFlow();
22 // Registers flow preferences.
23 // static void RegisterPrefs(PrefRegistrySimple* registry);
25 virtual bool ShouldLaunchBrowser() OVERRIDE
;
26 virtual bool ShouldSkipPostLoginScreens() OVERRIDE
;
27 virtual bool HandleLoginFailure(const LoginFailure
& failure
) OVERRIDE
;
28 virtual bool HandlePasswordChangeDetected() OVERRIDE
;
29 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status
)
31 virtual void LaunchExtraSteps(Profile
* profile
) OVERRIDE
;
33 virtual void OnSyncSetupDataLoaded(const std::string
& token
);
34 virtual void ConfigureSync(const std::string
& token
);
41 base::WeakPtrFactory
<SupervisedUserLoginFlow
> weak_factory_
;
43 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow
);
46 } // namespace chromeos
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_LOGIN_FLOW_H_