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

Unified Diff: chrome/browser/chromeos/login/login_performer.h

Issue 148843002: Make an online wildcard login check for enterprise devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Joao's comments. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/login_performer.h
diff --git a/chrome/browser/chromeos/login/login_performer.h b/chrome/browser/chromeos/login/login_performer.h
index 379a4588a0d42dd7e003e3daf7c831d13d6daabd..5d3d28716234e0c4b4d31148b86707d4c4d21a14 100644
--- a/chrome/browser/chromeos/login/login_performer.h
+++ b/chrome/browser/chromeos/login/login_performer.h
@@ -18,6 +18,10 @@
#include "content/public/browser/notification_registrar.h"
#include "google_apis/gaia/google_service_auth_error.h"
+namespace policy {
+class WildcardLoginChecker;
+}
+
namespace chromeos {
// This class encapsulates sign in operations.
@@ -117,6 +121,11 @@ class LoginPerformer : public LoginStatusConsumer,
// Starts authentication.
void StartAuthentication();
+ // Completion callback for the online wildcard login check for enterprise
+ // devices. Continues the login process or signals whitelist check failure
+ // depending on the value of |result|.
+ void OnlineWildcardLoginCheckCompleted(bool result);
+
// Used for logging in.
scoped_refptr<Authenticator> authenticator_;
@@ -141,6 +150,9 @@ class LoginPerformer : public LoginStatusConsumer,
// Authorization mode type.
AuthorizationMode auth_mode_;
+ // Used to verify logins that matched wildcard on the login whitelist.
+ scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_;
Joao da Silva 2014/01/28 15:47:46 #include scoped_ptr.h
Mattias Nissler (ping if slow) 2014/01/29 12:12:32 Done.
+
base::WeakPtrFactory<LoginPerformer> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(LoginPerformer);

Powered by Google App Engine
This is Rietveld 408576698