Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / managed / supervised_user_login_flow.h
blob39355d3e4fb1c1fad9ab3796f43023c6a8af6263
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"
14 namespace chromeos {
16 // UserFlow implementation for signing in locally managed user.
17 class SupervisedUserLoginFlow : public ExtendedUserFlow {
18 public:
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)
30 OVERRIDE;
31 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE;
33 virtual void OnSyncSetupDataLoaded(const std::string& token);
34 virtual void ConfigureSync(const std::string& token);
36 private:
37 void Launch();
39 bool data_loaded_;
40 Profile* profile_;
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_