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

Side by Side Diff: chrome/browser/signin/account_reconcilor.h

Issue 110373007: Delay loading the NTP after sign in until MergeSession has been performed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SIGNIN_ACCOUNT_RECONCILOR_H_ 4 #ifndef CHROME_BROWSER_SIGNIN_ACCOUNT_RECONCILOR_H_
5 #define CHROME_BROWSER_SIGNIN_ACCOUNT_RECONCILOR_H_ 5 #define CHROME_BROWSER_SIGNIN_ACCOUNT_RECONCILOR_H_
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/signin/google_auto_login_helper.h"
10 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 11 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
11 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
13 #include "google_apis/gaia/gaia_auth_consumer.h" 14 #include "google_apis/gaia/gaia_auth_consumer.h"
14 #include "google_apis/gaia/oauth2_token_service.h" 15 #include "google_apis/gaia/oauth2_token_service.h"
15 16
16 class GaiaAuthFetcher; 17 class GaiaAuthFetcher;
17 class Profile; 18 class Profile;
18 struct ChromeCookieDetails; 19 struct ChromeCookieDetails;
19 20
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 85
85 // Overriden from GaiaAuthConsumer 86 // Overriden from GaiaAuthConsumer
86 virtual void OnListAccountsSuccess(const std::string& data) OVERRIDE; 87 virtual void OnListAccountsSuccess(const std::string& data) OVERRIDE;
87 virtual void OnListAccountsFailure( 88 virtual void OnListAccountsFailure(
88 const GoogleServiceAuthError& error) OVERRIDE; 89 const GoogleServiceAuthError& error) OVERRIDE;
89 90
90 // The profile that this reconcilor belongs to. 91 // The profile that this reconcilor belongs to.
91 Profile* profile_; 92 Profile* profile_;
92 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
93 base::RepeatingTimer<AccountReconcilor> reconciliation_timer_; 94 base::RepeatingTimer<AccountReconcilor> reconciliation_timer_;
95 GoogleAutoLoginHelper merge_session_helper_;
94 96
95 // Used during reconcile action. 97 // Used during reconcile action.
96 // These members are used used to validate the gaia cookie. 98 // These members are used used to validate the gaia cookie.
97 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; 99 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_;
98 bool are_gaia_accounts_set_; 100 bool are_gaia_accounts_set_;
99 std::vector<std::string> gaia_accounts_; 101 std::vector<std::string> gaia_accounts_;
100 102
101 // Used during reconcile action. 103 // Used during reconcile action.
102 // These members are used to validate the tokens in OAuth2TokenService. 104 // These members are used to validate the tokens in OAuth2TokenService.
103 std::string primary_account_; 105 std::string primary_account_;
104 std::vector<std::string> chrome_accounts_; 106 std::vector<std::string> chrome_accounts_;
105 scoped_ptr<OAuth2TokenService::Request>* requests_; 107 scoped_ptr<OAuth2TokenService::Request>* requests_;
106 std::set<std::string> valid_chrome_accounts_; 108 std::set<std::string> valid_chrome_accounts_;
107 std::set<std::string> invalid_chrome_accounts_; 109 std::set<std::string> invalid_chrome_accounts_;
108 110
109 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor); 111 DISALLOW_COPY_AND_ASSIGN(AccountReconcilor);
110 }; 112 };
111 113
112 #endif // CHROME_BROWSER_SIGNIN_ACCOUNT_RECONCILOR_H_ 114 #endif // CHROME_BROWSER_SIGNIN_ACCOUNT_RECONCILOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698