summaryrefslogtreecommitdiffstats
path: root/google_apis/gaia/gaia_auth_fetcher.h
diff options
context:
space:
mode:
authorrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 00:03:49 +0000
committerrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 00:03:49 +0000
commit03608d8b532c1eb1d9e8bf2b7f942068d1e322ce (patch)
treef2f7941d01c711405d8642ef6caad26696dab1a3 /google_apis/gaia/gaia_auth_fetcher.h
parent4ecd01b126c1f85f89ad03a587e9c2d12b088242 (diff)
downloadchromium_src-03608d8b532c1eb1d9e8bf2b7f942068d1e322ce.zip
chromium_src-03608d8b532c1eb1d9e8bf2b7f942068d1e322ce.tar.gz
chromium_src-03608d8b532c1eb1d9e8bf2b7f942068d1e322ce.tar.bz2
Enable account reconcilor when --new-profile-management is used.
Move mergesession from SigninManager to reconcilor. Implement ListAccounts. Start implementing reconcile action, but still a noop for now. This CL depends on https://codereview.chromium.org/57103002/ Alan: here is an implementation of the ListAccounts. I also added lots of DVLOG() to the code. Let me know if you'd rather I took those out and put in a separate CL. Hui: please review. This CL adds more functionality to the reconcilor but its still not complete. However, it enables AC behind the flag for merge session so you don't need to do that manually. BUG=305249 Review URL: https://codereview.chromium.org/57363003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/gaia/gaia_auth_fetcher.h')
-rw-r--r--google_apis/gaia/gaia_auth_fetcher.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/google_apis/gaia/gaia_auth_fetcher.h b/google_apis/gaia/gaia_auth_fetcher.h
index 5021a53..0864f18 100644
--- a/google_apis/gaia/gaia_auth_fetcher.h
+++ b/google_apis/gaia/gaia_auth_fetcher.h
@@ -158,6 +158,9 @@ class GaiaAuthFetcher : public net::URLFetcherDelegate {
void StartOAuthLogin(const std::string& access_token,
const std::string& service);
+ // Starts a request to list the accounts in the GAIA cookie.
+ void StartListAccounts();
+
// Implementation of net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
@@ -253,6 +256,10 @@ class GaiaAuthFetcher : public net::URLFetcherDelegate {
const net::URLRequestStatus& status,
int response_code);
+ void OnListAccountsFetched(const std::string& data,
+ const net::URLRequestStatus& status,
+ int response_code);
+
void OnGetUserInfoFetched(const std::string& data,
const net::URLRequestStatus& status,
int response_code);
@@ -359,6 +366,7 @@ class GaiaAuthFetcher : public net::URLFetcherDelegate {
const GURL merge_session_gurl_;
const GURL uberauth_token_gurl_;
const GURL oauth_login_gurl_;
+ const GURL list_accounts_gurl_;
// While a fetch is going on:
scoped_ptr<net::URLFetcher> fetcher_;