Chromium Code Reviews| 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 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ | 4 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ |
| 5 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ | 5 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 | 216 |
| 217 base::RepeatingTimer<AccountReconcilor> reconciliation_timer_; | 217 base::RepeatingTimer<AccountReconcilor> reconciliation_timer_; |
| 218 MergeSessionHelper merge_session_helper_; | 218 MergeSessionHelper merge_session_helper_; |
| 219 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; | 219 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; |
| 220 bool registered_with_token_service_; | 220 bool registered_with_token_service_; |
| 221 | 221 |
| 222 // True while the reconcilor is busy checking or managing the accounts in | 222 // True while the reconcilor is busy checking or managing the accounts in |
| 223 // this profile. | 223 // this profile. |
| 224 bool is_reconcile_started_; | 224 bool is_reconcile_started_; |
| 225 | 225 |
| 226 bool first_execution_; | |
|
Roger Tawa OOO till Jul 10th
2014/05/07 17:05:38
Please add a comment for this member.
Mike Lerman
2014/05/07 18:49:37
Done.
| |
| 227 | |
| 226 // Used during reconcile action. | 228 // Used during reconcile action. |
| 227 // These members are used used to validate the gaia cookie. |gaia_accounts_| | 229 // These members are used used to validate the gaia cookie. |gaia_accounts_| |
| 228 // holds the state of google accounts in the gaia cookie. Each element is | 230 // holds the state of google accounts in the gaia cookie. Each element is |
| 229 // a pair that holds the email address of the account and a boolean that | 231 // a pair that holds the email address of the account and a boolean that |
| 230 // indicates whether the account is valid or not. The accounts in the vector | 232 // indicates whether the account is valid or not. The accounts in the vector |
| 231 // are ordered the in same way as the gaia cookie. | 233 // are ordered the in same way as the gaia cookie. |
| 232 bool are_gaia_accounts_set_; | 234 bool are_gaia_accounts_set_; |
| 233 std::vector<std::pair<std::string, bool> > gaia_accounts_; | 235 std::vector<std::pair<std::string, bool> > gaia_accounts_; |
| 234 | 236 |
| 235 // Used during reconcile action. | 237 // Used during reconcile action. |
| 236 // These members are used to validate the tokens in OAuth2TokenService. | 238 // These members are used to validate the tokens in OAuth2TokenService. |
| 237 std::string primary_account_; | 239 std::string primary_account_; |
| 238 std::vector<std::string> chrome_accounts_; | 240 std::vector<std::string> chrome_accounts_; |
| 239 scoped_ptr<OAuth2TokenService::Request>* requests_; | 241 scoped_ptr<OAuth2TokenService::Request>* requests_; |
| 240 ScopedVector<UserIdFetcher> user_id_fetchers_; | 242 ScopedVector<UserIdFetcher> user_id_fetchers_; |
| 241 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_; | 243 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_; |
| 242 EmailSet valid_chrome_accounts_; | 244 EmailSet valid_chrome_accounts_; |
| 243 EmailSet invalid_chrome_accounts_; | 245 EmailSet invalid_chrome_accounts_; |
| 244 std::vector<std::string> add_to_cookie_; | 246 std::vector<std::string> add_to_cookie_; |
| 245 std::vector<std::pair<std::string, int> > add_to_chrome_; | 247 std::vector<std::pair<std::string, int> > add_to_chrome_; |
| 246 | 248 |
| 247 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_; | 249 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_; |
| 248 | 250 |
| 249 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); | 251 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); |
| 250 }; | 252 }; |
| 251 | 253 |
| 252 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ | 254 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ |
| OLD | NEW |