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

Side by Side Diff: components/signin/core/browser/account_reconcilor.h

Issue 270673003: UMA metrics - number of accounts per profile and account reconciler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Signin Metrics becomes a namespace; formatting nits Created 6 years, 7 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 | Annotate | Revision Log
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 #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
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 // True iff this is the first time the reconcilor is executing.
227 bool first_execution_;
228
226 // Used during reconcile action. 229 // Used during reconcile action.
227 // These members are used used to validate the gaia cookie. |gaia_accounts_| 230 // 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 231 // 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 232 // 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 233 // indicates whether the account is valid or not. The accounts in the vector
231 // are ordered the in same way as the gaia cookie. 234 // are ordered the in same way as the gaia cookie.
232 bool are_gaia_accounts_set_; 235 bool are_gaia_accounts_set_;
233 std::vector<std::pair<std::string, bool> > gaia_accounts_; 236 std::vector<std::pair<std::string, bool> > gaia_accounts_;
234 237
235 // Used during reconcile action. 238 // Used during reconcile action.
236 // These members are used to validate the tokens in OAuth2TokenService. 239 // These members are used to validate the tokens in OAuth2TokenService.
237 std::string primary_account_; 240 std::string primary_account_;
238 std::vector<std::string> chrome_accounts_; 241 std::vector<std::string> chrome_accounts_;
239 scoped_ptr<OAuth2TokenService::Request>* requests_; 242 scoped_ptr<OAuth2TokenService::Request>* requests_;
240 ScopedVector<UserIdFetcher> user_id_fetchers_; 243 ScopedVector<UserIdFetcher> user_id_fetchers_;
241 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_; 244 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_;
242 EmailSet valid_chrome_accounts_; 245 EmailSet valid_chrome_accounts_;
243 EmailSet invalid_chrome_accounts_; 246 EmailSet invalid_chrome_accounts_;
244 std::vector<std::string> add_to_cookie_; 247 std::vector<std::string> add_to_cookie_;
245 std::vector<std::pair<std::string, int> > add_to_chrome_; 248 std::vector<std::pair<std::string, int> > add_to_chrome_;
246 249
247 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_; 250 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_;
248 251
249 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); 252 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor);
250 }; 253 };
251 254
252 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ 255 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698