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

Side by Side Diff: chrome/browser/chromeos/login/signin/oauth2_login_manager.h

Issue 2663033002: Merge "cros: Fix multiple LoadCredentials on network change" (Closed)
Patch Set: Created 3 years, 10 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 bool is_pre_merge, 228 bool is_pre_merge,
229 MergeVerificationOutcome outcome); 229 MergeVerificationOutcome outcome);
230 230
231 // Keeps the track if we have already reported OAuth2 token being loaded 231 // Keeps the track if we have already reported OAuth2 token being loaded
232 // by OAuth2TokenService. 232 // by OAuth2TokenService.
233 Profile* user_profile_; 233 Profile* user_profile_;
234 scoped_refptr<net::URLRequestContextGetter> auth_request_context_; 234 scoped_refptr<net::URLRequestContextGetter> auth_request_context_;
235 SessionRestoreStrategy restore_strategy_; 235 SessionRestoreStrategy restore_strategy_;
236 SessionRestoreState state_; 236 SessionRestoreState state_;
237 237
238 // Whether there is pending TokenService::LoadCredentials call.
239 bool pending_token_service_load_ = false;
240
238 std::unique_ptr<OAuth2TokenFetcher> oauth2_token_fetcher_; 241 std::unique_ptr<OAuth2TokenFetcher> oauth2_token_fetcher_;
239 std::unique_ptr<OAuth2LoginVerifier> login_verifier_; 242 std::unique_ptr<OAuth2LoginVerifier> login_verifier_;
240 std::unique_ptr<gaia::GaiaOAuthClient> account_info_fetcher_; 243 std::unique_ptr<gaia::GaiaOAuthClient> account_info_fetcher_;
241 244
242 // OAuth2 refresh token. 245 // OAuth2 refresh token.
243 std::string refresh_token_; 246 std::string refresh_token_;
244 247
245 // OAuthLogin scoped access token. 248 // OAuthLogin scoped access token.
246 std::string oauthlogin_access_token_; 249 std::string oauthlogin_access_token_;
247 250
248 // Session restore start time. 251 // Session restore start time.
249 base::Time session_restore_start_; 252 base::Time session_restore_start_;
250 253
251 // List of observers to notify when token availability changes. 254 // List of observers to notify when token availability changes.
252 // Makes sure list is empty on destruction. 255 // Makes sure list is empty on destruction.
253 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we 256 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we
254 // can change the line below to base::ObserverList<Observer, true>. 257 // can change the line below to base::ObserverList<Observer, true>.
255 base::ObserverList<Observer, false> observer_list_; 258 base::ObserverList<Observer, false> observer_list_;
256 259
257 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); 260 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
258 }; 261 };
259 262
260 } // namespace chromeos 263 } // namespace chromeos
261 264
262 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 265 #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