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

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: rebase 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 1e138ff5e5c97feb7928f2b9d5d0f73333cbad91..bb05f6f58dbe40de1d5772d1917b6e77f7e8d64f 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
@@ -38,6 +38,7 @@ class CaptivePortalWindowProxy;
class ErrorScreenActor;
class NativeWindowDelegate;
class User;
+struct UserCredentials;
// An interface for WebUILoginDisplay to call SigninScreenHandler.
class LoginDisplayWebUIHandler {
@@ -75,13 +76,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;
@@ -280,6 +279,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