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

Side by Side Diff: chrome/browser/chromeos/login/signin/oauth2_login_manager.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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signin/oauth2_login_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int expires_in_seconds) override; 150 int expires_in_seconds) override;
151 void OnGetUserInfoResponse( 151 void OnGetUserInfoResponse(
152 scoped_ptr<base::DictionaryValue> user_info) override; 152 scoped_ptr<base::DictionaryValue> user_info) override;
153 void OnOAuthError() override; 153 void OnOAuthError() override;
154 void OnNetworkError(int response_code) override; 154 void OnNetworkError(int response_code) override;
155 155
156 // OAuth2LoginVerifier::Delegate overrides. 156 // OAuth2LoginVerifier::Delegate overrides.
157 void OnSessionMergeSuccess() override; 157 void OnSessionMergeSuccess() override;
158 void OnSessionMergeFailure(bool connection_error) override; 158 void OnSessionMergeFailure(bool connection_error) override;
159 void OnListAccountsSuccess( 159 void OnListAccountsSuccess(
160 const std::vector<std::pair<std::string, bool>>& accounts) override; 160 const std::vector<gaia::ListedAccount>& accounts) override;
161 void OnListAccountsFailure(bool connection_error) override; 161 void OnListAccountsFailure(bool connection_error) override;
162 162
163 // OAuth2TokenFetcher::Delegate overrides. 163 // OAuth2TokenFetcher::Delegate overrides.
164 void OnOAuth2TokensAvailable( 164 void OnOAuth2TokensAvailable(
165 const GaiaAuthConsumer::ClientOAuthResult& oauth2_tokens) override; 165 const GaiaAuthConsumer::ClientOAuthResult& oauth2_tokens) override;
166 void OnOAuth2TokensFetchFailed() override; 166 void OnOAuth2TokensFetchFailed() override;
167 167
168 // OAuth2TokenService::Observer implementation: 168 // OAuth2TokenService::Observer implementation:
169 void OnRefreshTokenAvailable(const std::string& account_id) override; 169 void OnRefreshTokenAvailable(const std::string& account_id) override;
170 170
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we 249 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we
250 // can change the line below to base::ObserverList<Observer, true>. 250 // can change the line below to base::ObserverList<Observer, true>.
251 base::ObserverList<Observer, false> observer_list_; 251 base::ObserverList<Observer, false> observer_list_;
252 252
253 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); 253 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
254 }; 254 };
255 255
256 } // namespace chromeos 256 } // namespace chromeos
257 257
258 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 258 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signin/oauth2_login_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698