| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |