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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_display.h

Issue 1183893005: ChromeOS: user whitelist check should happen before entering password. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Sets the displayed email for the next login attempt with |CompleteLogin|. 86 // Sets the displayed email for the next login attempt with |CompleteLogin|.
87 // If it succeeds, user's displayed email value will be updated to |email|. 87 // If it succeeds, user's displayed email value will be updated to |email|.
88 virtual void SetDisplayEmail(const std::string& email) = 0; 88 virtual void SetDisplayEmail(const std::string& email) = 0;
89 89
90 // Returns name of the currently connected network, for error message, 90 // Returns name of the currently connected network, for error message,
91 virtual base::string16 GetConnectedNetworkName() = 0; 91 virtual base::string16 GetConnectedNetworkName() = 0;
92 92
93 // Restarts the public-session auto-login timer if it is running. 93 // Restarts the public-session auto-login timer if it is running.
94 virtual void ResetPublicSessionAutoLoginTimer() = 0; 94 virtual void ResetPublicSessionAutoLoginTimer() = 0;
95 95
96 // Returns true if user is allowed to log in by domain policy.
97 virtual bool IsUserWhitelisted(const std::string& user_id) = 0;
98
96 protected: 99 protected:
97 virtual ~Delegate(); 100 virtual ~Delegate();
98 }; 101 };
99 102
100 // |background_bounds| determines the bounds of login UI background. 103 // |background_bounds| determines the bounds of login UI background.
101 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); 104 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds);
102 virtual ~LoginDisplay(); 105 virtual ~LoginDisplay();
103 106
104 // Clears and enables fields on user pod or GAIA frame. 107 // Clears and enables fields on user pod or GAIA frame.
105 virtual void ClearAndEnablePassword() = 0; 108 virtual void ClearAndEnablePassword() = 0;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // in redesigned login stack. 177 // in redesigned login stack.
175 // Login stack (and this object) will be recreated for next user sign in. 178 // Login stack (and this object) will be recreated for next user sign in.
176 bool is_signin_completed_; 179 bool is_signin_completed_;
177 180
178 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); 181 DISALLOW_COPY_AND_ASSIGN(LoginDisplay);
179 }; 182 };
180 183
181 } // namespace chromeos 184 } // namespace chromeos
182 185
183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ 186 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.cc ('k') | chrome/browser/chromeos/login/ui/webui_login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698