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

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

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const std::string& password) OVERRIDE; 70 const std::string& password) OVERRIDE;
71 virtual void Login(const std::string& username, 71 virtual void Login(const std::string& username,
72 const std::string& password) OVERRIDE; 72 const std::string& password) OVERRIDE;
73 virtual void LoginAsGuest() OVERRIDE; 73 virtual void LoginAsGuest() OVERRIDE;
74 virtual void OnUserSelected(const std::string& username) OVERRIDE; 74 virtual void OnUserSelected(const std::string& username) OVERRIDE;
75 virtual void OnStartEnterpriseEnrollment() OVERRIDE; 75 virtual void OnStartEnterpriseEnrollment() OVERRIDE;
76 76
77 // content::NotificationObserver implementation. 77 // content::NotificationObserver implementation.
78 virtual void Observe(int type, 78 virtual void Observe(int type,
79 const content::NotificationSource& source, 79 const content::NotificationSource& source,
80 const content::NotificationDetails& details); 80 const content::NotificationDetails& details) OVERRIDE;
81 81
82 // Set a delegate that we will pass LoginStatusConsumer events to. 82 // Set a delegate that we will pass LoginStatusConsumer events to.
83 // Used for testing. 83 // Used for testing.
84 void set_login_status_consumer(LoginStatusConsumer* consumer) { 84 void set_login_status_consumer(LoginStatusConsumer* consumer) {
85 login_status_consumer_ = consumer; 85 login_status_consumer_ = consumer;
86 } 86 }
87 87
88 // Returns the LoginDisplay created and owned by this controller. 88 // Returns the LoginDisplay created and owned by this controller.
89 // Used for testing. 89 // Used for testing.
90 LoginDisplay* login_display() { 90 LoginDisplay* login_display() {
91 return login_display_.get(); 91 return login_display_.get();
92 } 92 }
93 93
94 // Returns the LoginDisplayHost for this controller. 94 // Returns the LoginDisplayHost for this controller.
95 LoginDisplayHost* login_display_host() { 95 LoginDisplayHost* login_display_host() {
96 return host_; 96 return host_;
97 } 97 }
98 98
99 private: 99 private:
100 friend class ExistingUserControllerTest; 100 friend class ExistingUserControllerTest;
101 friend class MockLoginPerformerDelegate; 101 friend class MockLoginPerformerDelegate;
102 102
103 // LoginPerformer::Delegate implementation: 103 // LoginPerformer::Delegate implementation:
104 virtual void OnLoginFailure(const LoginFailure& error); 104 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE;
105 virtual void OnLoginSuccess( 105 virtual void OnLoginSuccess(
106 const std::string& username, 106 const std::string& username,
107 const std::string& password, 107 const std::string& password,
108 const GaiaAuthConsumer::ClientLoginResult& credentials, 108 const GaiaAuthConsumer::ClientLoginResult& credentials,
109 bool pending_requests, 109 bool pending_requests,
110 bool using_oauth); 110 bool using_oauth) OVERRIDE;
111 virtual void OnOffTheRecordLoginSuccess(); 111 virtual void OnOffTheRecordLoginSuccess() OVERRIDE;
112 virtual void OnPasswordChangeDetected( 112 virtual void OnPasswordChangeDetected(
113 const GaiaAuthConsumer::ClientLoginResult& credentials); 113 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE;
114 virtual void WhiteListCheckFailed(const std::string& email); 114 virtual void WhiteListCheckFailed(const std::string& email) OVERRIDE;
115 115
116 // LoginUtils::Delegate implementation: 116 // LoginUtils::Delegate implementation:
117 virtual void OnProfilePrepared(Profile* profile); 117 virtual void OnProfilePrepared(Profile* profile) OVERRIDE;
118 118
119 // CaptchaView::Delegate: 119 // CaptchaView::Delegate:
120 virtual void OnCaptchaEntered(const std::string& captcha); 120 virtual void OnCaptchaEntered(const std::string& captcha) OVERRIDE;
121 121
122 // PasswordChangedView::Delegate: 122 // PasswordChangedView::Delegate:
123 virtual void RecoverEncryptedData(const std::string& old_password); 123 virtual void RecoverEncryptedData(const std::string& old_password) OVERRIDE;
124 virtual void ResyncEncryptedData(); 124 virtual void ResyncEncryptedData() OVERRIDE;
125 125
126 // Starts WizardController with the specified screen. 126 // Starts WizardController with the specified screen.
127 void ActivateWizard(const std::string& screen_name); 127 void ActivateWizard(const std::string& screen_name);
128 128
129 // Returns corresponding native window. 129 // Returns corresponding native window.
130 gfx::NativeWindow GetNativeWindow() const; 130 gfx::NativeWindow GetNativeWindow() const;
131 131
132 // Changes state of the status area. During login operation it's disabled. 132 // Changes state of the status area. During login operation it's disabled.
133 void SetStatusAreaEnabled(bool enable); 133 void SetStatusAreaEnabled(bool enable);
134 134
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 bool is_owner_login_; 203 bool is_owner_login_;
204 204
205 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); 205 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin);
206 206
207 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 207 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
208 }; 208 };
209 209
210 } // namespace chromeos 210 } // namespace chromeos
211 211
212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698