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

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

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Rename HandleAdAuth. Use system_api enums Created 4 years 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 45d3fa258d4b0dc1b37e948a74574cb19e5eb211..f52ae5f74418fc279a5c2eab1b2d376a2046c74f 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
@@ -15,11 +15,13 @@
#include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
#include "chromeos/network/portal_detector/network_portal_detector.h"
#include "net/base/net_errors.h"
+#include "third_party/cros_system_api/dbus/service_constants.h"
class AccountId;
namespace chromeos {
+class Key;
class SigninScreenHandler;
class SigninScreenHandlerDelegate;
@@ -96,6 +98,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 +132,17 @@ class GaiaScreenHandler : public BaseScreenHandler,
void StartClearingDnsCache();
void OnDnsCleared();
+ // Callback for AuthPolicyClient.
+ void DoAdAuth(const std::string& username,
+ const Key& key,
+ authpolicy::AuthUserErrorType error,
+ 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