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

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: Fix compile error, out-of-order parameter 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
« no previous file with comments | « components/signin.gypi ('k') | components/signin/core/browser/account_reconcilor.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 #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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 SigninClient* client_; 206 SigninClient* client_;
207 207
208 MergeSessionHelper merge_session_helper_; 208 MergeSessionHelper merge_session_helper_;
209 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; 209 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_;
210 bool registered_with_token_service_; 210 bool registered_with_token_service_;
211 211
212 // True while the reconcilor is busy checking or managing the accounts in 212 // True while the reconcilor is busy checking or managing the accounts in
213 // this profile. 213 // this profile.
214 bool is_reconcile_started_; 214 bool is_reconcile_started_;
215 215
216 // True iff this is the first time the reconcilor is executing.
217 bool first_execution_;
218
216 // Used during reconcile action. 219 // Used during reconcile action.
217 // These members are used used to validate the gaia cookie. |gaia_accounts_| 220 // These members are used used to validate the gaia cookie. |gaia_accounts_|
218 // holds the state of google accounts in the gaia cookie. Each element is 221 // holds the state of google accounts in the gaia cookie. Each element is
219 // a pair that holds the email address of the account and a boolean that 222 // a pair that holds the email address of the account and a boolean that
220 // indicates whether the account is valid or not. The accounts in the vector 223 // indicates whether the account is valid or not. The accounts in the vector
221 // are ordered the in same way as the gaia cookie. 224 // are ordered the in same way as the gaia cookie.
222 bool are_gaia_accounts_set_; 225 bool are_gaia_accounts_set_;
223 std::vector<std::pair<std::string, bool> > gaia_accounts_; 226 std::vector<std::pair<std::string, bool> > gaia_accounts_;
224 227
225 // Used during reconcile action. 228 // Used during reconcile action.
226 // These members are used to validate the tokens in OAuth2TokenService. 229 // These members are used to validate the tokens in OAuth2TokenService.
227 std::string primary_account_; 230 std::string primary_account_;
228 std::vector<std::string> chrome_accounts_; 231 std::vector<std::string> chrome_accounts_;
229 scoped_ptr<OAuth2TokenService::Request>* requests_; 232 scoped_ptr<OAuth2TokenService::Request>* requests_;
230 ScopedVector<UserIdFetcher> user_id_fetchers_; 233 ScopedVector<UserIdFetcher> user_id_fetchers_;
231 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_; 234 ScopedVector<SigninOAuthHelper> refresh_token_fetchers_;
232 EmailSet valid_chrome_accounts_; 235 EmailSet valid_chrome_accounts_;
233 EmailSet invalid_chrome_accounts_; 236 EmailSet invalid_chrome_accounts_;
234 std::vector<std::string> add_to_cookie_; 237 std::vector<std::string> add_to_cookie_;
235 std::vector<std::pair<std::string, int> > add_to_chrome_; 238 std::vector<std::pair<std::string, int> > add_to_chrome_;
236 239
237 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_; 240 std::deque<GetAccountsFromCookieCallback> get_gaia_accounts_callbacks_;
238 241
239 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); 242 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor);
240 }; 243 };
241 244
242 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_ 245 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_RECONCILOR_H_
OLDNEW
« no previous file with comments | « components/signin.gypi ('k') | components/signin/core/browser/account_reconcilor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698