OLD | NEW |
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_USER_FLOW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chromeos/login/auth/auth_status_consumer.h" | 10 #include "chromeos/login/auth/auth_status_consumer.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 private: | 44 private: |
45 LoginDisplayHost* host_; | 45 LoginDisplayHost* host_; |
46 }; | 46 }; |
47 | 47 |
48 // UserFlow implementation for regular login flow. | 48 // UserFlow implementation for regular login flow. |
49 class DefaultUserFlow : public UserFlow { | 49 class DefaultUserFlow : public UserFlow { |
50 public: | 50 public: |
51 virtual ~DefaultUserFlow(); | 51 virtual ~DefaultUserFlow(); |
52 | 52 |
53 virtual bool CanLockScreen() OVERRIDE; | 53 virtual bool CanLockScreen() override; |
54 virtual bool ShouldShowSettings() OVERRIDE; | 54 virtual bool ShouldShowSettings() override; |
55 virtual bool ShouldLaunchBrowser() OVERRIDE; | 55 virtual bool ShouldLaunchBrowser() override; |
56 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; | 56 virtual bool ShouldSkipPostLoginScreens() override; |
57 virtual bool HandleLoginFailure(const AuthFailure& failure) OVERRIDE; | 57 virtual bool HandleLoginFailure(const AuthFailure& failure) override; |
58 virtual void HandleLoginSuccess(const UserContext& context) OVERRIDE; | 58 virtual void HandleLoginSuccess(const UserContext& context) override; |
59 virtual bool HandlePasswordChangeDetected() OVERRIDE; | 59 virtual bool HandlePasswordChangeDetected() override; |
60 virtual void HandleOAuthTokenStatusChange( | 60 virtual void HandleOAuthTokenStatusChange( |
61 user_manager::User::OAuthTokenStatus status) OVERRIDE; | 61 user_manager::User::OAuthTokenStatus status) override; |
62 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE; | 62 virtual void LaunchExtraSteps(Profile* profile) override; |
63 }; | 63 }; |
64 | 64 |
65 // UserFlow stub for non-regular flows. | 65 // UserFlow stub for non-regular flows. |
66 class ExtendedUserFlow : public UserFlow { | 66 class ExtendedUserFlow : public UserFlow { |
67 public: | 67 public: |
68 explicit ExtendedUserFlow(const std::string& user_id); | 68 explicit ExtendedUserFlow(const std::string& user_id); |
69 virtual ~ExtendedUserFlow(); | 69 virtual ~ExtendedUserFlow(); |
70 | 70 |
71 virtual bool ShouldShowSettings() OVERRIDE; | 71 virtual bool ShouldShowSettings() override; |
72 | 72 |
73 protected: | 73 protected: |
74 // Subclasses can call this method to unregister flow in the next event. | 74 // Subclasses can call this method to unregister flow in the next event. |
75 virtual void UnregisterFlowSoon(); | 75 virtual void UnregisterFlowSoon(); |
76 std::string user_id() { | 76 std::string user_id() { |
77 return user_id_; | 77 return user_id_; |
78 } | 78 } |
79 | 79 |
80 private: | 80 private: |
81 std::string user_id_; | 81 std::string user_id_; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace chromeos | 84 } // namespace chromeos |
85 | 85 |
86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ |
OLD | NEW |