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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 223 // this profile. | 223 // this profile. |
| 224 bool is_reconcile_started_; | 224 bool is_reconcile_started_; |
| 225 | 225 |
| 226 // Used during reconcile action. | 226 // Used during reconcile action. |
| 227 // These members are used used to validate the gaia cookie. |gaia_accounts_| | 227 // 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 | 228 // 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 | 229 // 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 | 230 // indicates whether the account is valid or not. The accounts in the vector |
| 231 // are ordered the in same way as the gaia cookie. | 231 // are ordered the in same way as the gaia cookie. |
| 232 bool are_gaia_accounts_set_; | 232 bool are_gaia_accounts_set_; |
| 233 | |
| 234 // Set noop_only mode of the account reconciler should do all the tracking | |
|
noms (inactive)
2014/05/07 14:57:24
I don't think I understand this comment very well.
Roger Tawa OOO till Jul 10th
2014/05/07 16:14:45
The mirror promo may change the value returned by
Mike Lerman
2014/05/08 15:17:50
Ok, so since the value will not be cached this var
| |
| 235 // and statistical gathering that would be performed during reconciliation, | |
| 236 // but not perform any account, token or cookie merges. | |
| 237 bool noop_only_mode_; | |
| 233 std::vector<std::pair<std::string, bool> > gaia_accounts_; | 238 std::vector<std::pair<std::string, bool> > gaia_accounts_; |
| 234 | 239 |
| 235 // Used during reconcile action. | 240 // Used during reconcile action. |
| 236 // These members are used to validate the tokens in OAuth2TokenService. | 241 // These members are used to validate the tokens in OAuth2TokenService. |
| 237 std::string primary_account_; | 242 std::string primary_account_; |
| 238 std::vector<std::string> chrome_accounts_; | 243 std::vector<std::string> chrome_accounts_; |
| 239 scoped_ptr<OAuth2TokenService::Request>* requests_; | 244 scoped_ptr<OAuth2TokenService::Request>* requests_; |
| 240 ScopedVector<UserIdFetcher> user_id_fetchers_; | 245 ScopedVector<UserIdFetcher> user_id_fetchers_; |
| 241 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_; | 246 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_; |
| 242 EmailSet valid_chrome_accounts_; | 247 EmailSet valid_chrome_accounts_; |
| 243 EmailSet invalid_chrome_accounts_; | 248 EmailSet invalid_chrome_accounts_; |
| 244 std::vector<std::string> add_to_cookie_; | 249 std::vector<std::string> add_to_cookie_; |
| 245 std::vector<std::pair<std::string, int> > add_to_chrome_; | 250 std::vector<std::pair<std::string, int> > add_to_chrome_; |
| 246 | 251 |
| 247 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_; | 252 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_; |
| 248 | 253 |
| 249 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); | 254 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); |
| 250 }; | 255 }; |
| 251 | 256 |
| 252 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ | 257 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ |
| OLD | NEW |