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

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

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Created 4 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 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 21c5497864366899421685e24e333f870ba3b724..8faee6dfd97480799fee48d989f86ccb2826f23c 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
@@ -20,6 +20,7 @@ class AccountId;
namespace chromeos {
+class Key;
class SigninScreenHandler;
class SigninScreenHandlerDelegate;
@@ -96,6 +97,9 @@ class GaiaScreenHandler : public BaseScreenHandler,
const std::string& password,
bool using_saml);
+ void HandleCompleteAdAuthentication(const std::string& user_name,
+ const std::string& password);
+
void HandleUsingSAMLAPI();
void HandleScrapedPasswordCount(int password_count);
void HandleScrapedPasswordVerificationFailed();
@@ -127,6 +131,17 @@ class GaiaScreenHandler : public BaseScreenHandler,
void StartClearingDnsCache();
void OnDnsCleared();
+ // Callback for AuthPolicyClient.
+ void HandleAdAuth(const std::string& username,
+ const Key& key,
+ int code,
+ const std::string& uid);
+
+ // Callback for writing password into pipe.
+ void OnPasswordPipeReady(const std::string& user_name,
+ const Key& key,
+ base::ScopedFD password_fd);
+
// Show sign-in screen for the given credentials.
void ShowSigninScreenForTest(const std::string& username,
const std::string& password);

Powered by Google App Engine
This is Rietveld 408576698