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

Unified Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.h

Issue 99373008: Fallback to on-line password check if local fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move credential update to be only called after on-line auth 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/user_manager_screen_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/signin/user_manager_screen_handler.h
diff --git a/chrome/browser/ui/webui/signin/user_manager_screen_handler.h b/chrome/browser/ui/webui/signin/user_manager_screen_handler.h
index 7b11c7f72a745681cc6391b9e9facf182d6ec0e9..8459ed8764ff8e6fdd6fd2accf15698b1043e636 100644
--- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.h
+++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.h
@@ -9,6 +9,9 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/host_desktop.h"
#include "content/public/browser/web_ui_message_handler.h"
+#include "google_apis/gaia/gaia_auth_consumer.h"
+
+class GaiaAuthFetcher;
namespace base {
class DictionaryValue;
@@ -16,7 +19,8 @@ class FilePath;
class ListValue;
}
-class UserManagerScreenHandler : public content::WebUIMessageHandler {
+class UserManagerScreenHandler : public content::WebUIMessageHandler,
+ public GaiaAuthConsumer {
public:
UserManagerScreenHandler();
virtual ~UserManagerScreenHandler();
@@ -38,9 +42,17 @@ class UserManagerScreenHandler : public content::WebUIMessageHandler {
void HandleLaunchUser(const base::ListValue* args);
void HandleRemoveUser(const base::ListValue* args);
+ // Handle GAIA auth results.
+ virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE;
+ virtual void OnClientLoginFailure(const GoogleServiceAuthError& error)
+ OVERRIDE;
+
// Sends user list to account chooser.
void SendUserList();
+ // Pass success/failure information back to the web page.
+ void ReportAuthenticationResult(bool success);
+
// Observes the ProfileInfoCache and gets notified when a profile has been
// modified, so that the displayed user pods can be updated.
scoped_ptr<ProfileUpdateObserver> profileInfoCacheObserver_;
@@ -48,6 +60,15 @@ class UserManagerScreenHandler : public content::WebUIMessageHandler {
// The host desktop type this user manager belongs to.
chrome::HostDesktopType desktop_type_;
+ // Authenticator used when local-auth fails.
+ scoped_ptr<GaiaAuthFetcher> client_login_;
+
+ // The index of the profile currently being authenticated.
+ size_t authenticating_profile_index_;
+
+ // Login password, held during on-line auth for saving later if correct.
+ std::string password_attempt_;
+
DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/user_manager_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698