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

Unified Diff: google_apis/gaia/gaia_auth_util.h

Issue 1162103003: ListAccounts will return the Gaia ID as well as the email of the account. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 | « google_apis/gaia/fake_gaia.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_auth_util.h
diff --git a/google_apis/gaia/gaia_auth_util.h b/google_apis/gaia/gaia_auth_util.h
index 9b90f8a86dec89771cb8ad7afbcf14fb630f706e..5e7564576280e18b0791489abfd3a6e1403eddae 100644
--- a/google_apis/gaia/gaia_auth_util.h
+++ b/google_apis/gaia/gaia_auth_util.h
@@ -13,6 +13,20 @@ class GURL;
namespace gaia {
+struct ListedAccount {
+ // The account's ID, as per Chrome, will be determined in the
+ // CookieManagerService.
+ std::string id;
+ std::string email;
+ std::string gaia_id;
+ std::string raw_email;
+ bool valid;
+
+ ListedAccount();
+ ~ListedAccount();
+ bool operator==(const ListedAccount& other) const;
+};
+
// Perform basic canonicalization of |email_address|, taking into account that
// gmail does not consider '.' or caps inside a username to matter.
std::string CanonicalizeEmail(const std::string& email_address);
@@ -38,8 +52,7 @@ bool IsGaiaSignonRealm(const GURL& url);
// login would succeed (i.e. the user does not need to reauthenticate).
// If there an error parsing the JSON, then false is returned.
bool ParseListAccountsData(
- const std::string& data,
- std::vector<std::pair<std::string, bool> >* accounts);
+ const std::string& data, std::vector<ListedAccount>* accounts);
} // namespace gaia
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698