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

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

Issue 695553002: Account reconcilor: Use cookie store cookie changed subscription. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 6 years, 1 month 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/signin/core/browser/about_signin_internals.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 4
5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void OnListAccountsSuccess(const std::string& data) override; 175 void OnListAccountsSuccess(const std::string& data) override;
176 void OnListAccountsFailure(const GoogleServiceAuthError& error) override; 176 void OnListAccountsFailure(const GoogleServiceAuthError& error) override;
177 177
178 // Callback for ListAccounts. Once the email addresses are fetched from GAIA, 178 // Callback for ListAccounts. Once the email addresses are fetched from GAIA,
179 // they are pushed to the signin_internals_ui. 179 // they are pushed to the signin_internals_ui.
180 void OnListAccountsComplete( 180 void OnListAccountsComplete(
181 std::vector<std::pair<std::string, bool> >& gaia_accounts); 181 std::vector<std::pair<std::string, bool> >& gaia_accounts);
182 182
183 // Called when a cookie changes. If the cookie relates to a GAIA LSID cookie, 183 // Called when a cookie changes. If the cookie relates to a GAIA LSID cookie,
184 // then we call ListAccounts and update the UI element. 184 // then we call ListAccounts and update the UI element.
185 void OnCookieChanged(const net::CanonicalCookie* cookie); 185 void OnCookieChanged(const net::CanonicalCookie& cookie, bool removed);
186 186
187 // Weak pointer to the token service. 187 // Weak pointer to the token service.
188 ProfileOAuth2TokenService* token_service_; 188 ProfileOAuth2TokenService* token_service_;
189 189
190 // Weak pointer to the signin manager. 190 // Weak pointer to the signin manager.
191 SigninManagerBase* signin_manager_; 191 SigninManagerBase* signin_manager_;
192 192
193 // Weak pointer to the client. 193 // Weak pointer to the client.
194 SigninClient* client_; 194 SigninClient* client_;
195 195
196 // Fetcher for information about accounts in the cookie jar from GAIA. 196 // Fetcher for information about accounts in the cookie jar from GAIA.
197 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; 197 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_;
198 198
199 // Encapsulates the actual signin and token related values. 199 // Encapsulates the actual signin and token related values.
200 // Most of the values are mirrored in the prefs for persistence. 200 // Most of the values are mirrored in the prefs for persistence.
201 SigninStatus signin_status_; 201 SigninStatus signin_status_;
202 202
203 ObserverList<Observer> signin_observers_; 203 ObserverList<Observer> signin_observers_;
204 204
205 scoped_ptr<SigninClient::CookieChangedCallbackList::Subscription> 205 scoped_ptr<SigninClient::CookieChangedSubscription>
206 cookie_changed_subscription_; 206 cookie_changed_subscription_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); 208 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals);
209 }; 209 };
210 210
211 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ 211 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/signin/core/browser/about_signin_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698