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

Side by Side Diff: chrome/browser/chromeos/login/user_flow.h

Issue 856493004: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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_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
43 return host_; 43 return host_;
44 } 44 }
45 45
46 private: 46 private:
47 LoginDisplayHost* host_; 47 LoginDisplayHost* host_;
48 }; 48 };
49 49
50 // UserFlow implementation for regular login flow. 50 // UserFlow implementation for regular login flow.
51 class DefaultUserFlow : public UserFlow { 51 class DefaultUserFlow : public UserFlow {
52 public: 52 public:
53 virtual ~DefaultUserFlow(); 53 ~DefaultUserFlow() override;
54 54
55 virtual void AppendAdditionalCommandLineSwitches() override; 55 void AppendAdditionalCommandLineSwitches() override;
56 virtual bool CanLockScreen() override; 56 bool CanLockScreen() override;
57 virtual bool ShouldShowSettings() override; 57 bool ShouldShowSettings() override;
58 virtual bool ShouldLaunchBrowser() override; 58 bool ShouldLaunchBrowser() override;
59 virtual bool ShouldSkipPostLoginScreens() override; 59 bool ShouldSkipPostLoginScreens() override;
60 virtual bool SupportsEarlyRestartToApplyFlags() override; 60 bool SupportsEarlyRestartToApplyFlags() override;
61 virtual bool HandleLoginFailure(const AuthFailure& failure) override; 61 bool HandleLoginFailure(const AuthFailure& failure) override;
62 virtual void HandleLoginSuccess(const UserContext& context) override; 62 void HandleLoginSuccess(const UserContext& context) override;
63 virtual bool HandlePasswordChangeDetected() override; 63 bool HandlePasswordChangeDetected() override;
64 virtual void HandleOAuthTokenStatusChange( 64 void HandleOAuthTokenStatusChange(
65 user_manager::User::OAuthTokenStatus status) override; 65 user_manager::User::OAuthTokenStatus status) override;
66 virtual void LaunchExtraSteps(Profile* profile) override; 66 void LaunchExtraSteps(Profile* profile) override;
67 }; 67 };
68 68
69 // UserFlow stub for non-regular flows. 69 // UserFlow stub for non-regular flows.
70 class ExtendedUserFlow : public UserFlow { 70 class ExtendedUserFlow : public UserFlow {
71 public: 71 public:
72 explicit ExtendedUserFlow(const std::string& user_id); 72 explicit ExtendedUserFlow(const std::string& user_id);
73 virtual ~ExtendedUserFlow(); 73 ~ExtendedUserFlow() override;
74 74
75 virtual void AppendAdditionalCommandLineSwitches() override; 75 void AppendAdditionalCommandLineSwitches() override;
76 virtual bool ShouldShowSettings() override; 76 bool ShouldShowSettings() override;
77 virtual void HandleOAuthTokenStatusChange( 77 void HandleOAuthTokenStatusChange(
78 user_manager::User::OAuthTokenStatus status) override; 78 user_manager::User::OAuthTokenStatus status) override;
79 79
80 protected: 80 protected:
81 // Subclasses can call this method to unregister flow in the next event. 81 // Subclasses can call this method to unregister flow in the next event.
82 virtual void UnregisterFlowSoon(); 82 virtual void UnregisterFlowSoon();
83 std::string user_id() { 83 std::string user_id() {
84 return user_id_; 84 return user_id_;
85 } 85 }
86 86
87 private: 87 private:
88 std::string user_id_; 88 std::string user_id_;
89 }; 89 };
90 90
91 } // namespace chromeos 91 } // namespace chromeos
92 92
93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_ 93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698