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

Unified Diff: chrome/browser/chromeos/login/login_utils.h

Issue 5641001: [cros] Fetch cookies after online authentication is successful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 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
« no previous file with comments | « chrome/browser/chromeos/login/login_screen.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.h
diff --git a/chrome/browser/chromeos/login/login_utils.h b/chrome/browser/chromeos/login/login_utils.h
index 6357e2b4b3c15e00e197761a35798c5d5a84d637..165852b718b9eede272ae81f82cbf4ab0cd07724 100644
--- a/chrome/browser/chromeos/login/login_utils.h
+++ b/chrome/browser/chromeos/login/login_utils.h
@@ -36,10 +36,12 @@ class LoginUtils {
// Invoked after the user has successfully logged in. This launches a browser
// and does other bookkeeping after logging in.
+ // If |pending_requests| is true, there's a pending online auth request.
virtual void CompleteLogin(
const std::string& username,
const std::string& password,
- const GaiaAuthConsumer::ClientLoginResult& credentials) = 0;
+ const GaiaAuthConsumer::ClientLoginResult& credentials,
+ bool pending_requests) = 0;
// Invoked after the tmpfs is successfully mounted.
// Asks session manager to restart Chrome in Browse Without Sign In mode.
@@ -64,6 +66,17 @@ class LoginUtils {
// Prewarms the authentication network connection.
virtual void PrewarmAuthentication() = 0;
+ // Given the credentials try to exchange them for
+ // full-fledged Google authentication cookies.
+ virtual void FetchCookies(
+ Profile* profile,
+ const GaiaAuthConsumer::ClientLoginResult& credentials) = 0;
+
+ // Supply credentials for sync and others to use.
+ virtual void FetchTokens(
+ Profile* profile,
+ const GaiaAuthConsumer::ClientLoginResult& credentials) = 0;
+
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/login_screen.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698