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

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

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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/signin_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
index d22b9f4f8a14a20695c6217ff68c24923c6b822a..1bf0e2427cc993319b6d211bf2ba76063d91b186 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
@@ -39,6 +39,7 @@ class ErrorScreenActor;
class LocallyManagedUserCreationScreenHandler;
class NativeWindowDelegate;
class User;
+struct UserCredentials;
// An interface for WebUILoginDisplay to call SigninScreenHandler.
class LoginDisplayWebUIHandler {
@@ -76,13 +77,11 @@ class SigninScreenHandlerDelegate {
// Confirms sign up by provided |username| and |password| specified.
// Used for new user login via GAIA extension.
- virtual void CompleteLogin(const std::string& username,
- const std::string& password) = 0;
+ virtual void CompleteLogin(const UserCredentials& credentials) = 0;
// Sign in using |username| and |password| specified.
// Used for both known and new users.
- virtual void Login(const std::string& username,
- const std::string& password) = 0;
+ virtual void Login(const UserCredentials& credentials) = 0;
// Sign in into a retail mode session.
virtual void LoginAsRetailModeUser() = 0;
@@ -282,6 +281,7 @@ class SigninScreenHandler
void UpdateAddButtonStatus();
// WebUI message handlers.
+ void HandleCompleteAuthentication(const base::ListValue* args);
void HandleCompleteLogin(const base::ListValue* args);
void HandleGetUsers(const base::ListValue* args);
void HandleAuthenticateUser(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698