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

Unified Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h

Issue 2794493002: Add AuthPolicyLoginHelper (Closed)
Patch Set: Update after review Created 3 years, 8 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/ui/webui/chromeos/login/gaia_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
index 3fa5c55ece9853489eec8b0b2b0477c12ef08053..be1a92fb9cf28b320ffa7848a7b7b1030e8407c4 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
@@ -26,6 +26,7 @@ class ActiveDirectoryAccountData;
namespace chromeos {
+class AuthPolicyLoginHelper;
class Key;
class SigninScreenHandler;
class SigninScreenHandlerDelegate;
@@ -109,6 +110,8 @@ class GaiaScreenHandler : public BaseScreenHandler,
const std::string& old_password,
const std::string& new_password);
+ void HandleCancelActiveDirectoryAuth();
+
void HandleUsingSAMLAPI();
void HandleScrapedPasswordCount(int password_count);
void HandleScrapedPasswordVerificationFailed();
@@ -275,6 +278,10 @@ class GaiaScreenHandler : public BaseScreenHandler,
// True if the authentication extension is still loading.
bool auth_extension_being_loaded_ = false;
+ // Helper to call AuthPolicyClient and cancel calls if needed. Used to
+ // authenticate users against Active Directory server.
+ std::unique_ptr<AuthPolicyLoginHelper> authpolicy_login_helper_;
+
base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);

Powered by Google App Engine
This is Rietveld 408576698