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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
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 4
5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Virtual so that tests can override the network fetching behaviour. 184 // Virtual so that tests can override the network fetching behaviour.
185 virtual void SendRefreshTokenAnnotationRequest(const std::string& account_id); 185 virtual void SendRefreshTokenAnnotationRequest(const std::string& account_id);
186 void RefreshTokenAnnotationRequestDone(const std::string& account_id); 186 void RefreshTokenAnnotationRequestDone(const std::string& account_id);
187 187
188 void ScheduleNextRefreshFromTokenService(); 188 void ScheduleNextRefreshFromTokenService();
189 189
190 OAuth2TokenService* token_service_; // Not owned. 190 OAuth2TokenService* token_service_; // Not owned.
191 SigninClient* signin_client_; // Not owned. 191 SigninClient* signin_client_; // Not owned.
192 std::map<std::string, AccountInfoFetcher*> user_info_requests_; 192 std::map<std::string, AccountInfoFetcher*> user_info_requests_;
193 std::map<std::string, AccountState> accounts_; 193 std::map<std::string, AccountState> accounts_;
194 ObserverList<Observer> observer_list_; 194 base::ObserverList<Observer> observer_list_;
195 bool shutdown_called_; 195 bool shutdown_called_;
196 bool network_fetches_enabled_; 196 bool network_fetches_enabled_;
197 std::list<std::string> pending_user_info_fetches_; 197 std::list<std::string> pending_user_info_fetches_;
198 base::Time last_updated_; 198 base::Time last_updated_;
199 base::OneShotTimer<AccountTrackerService> timer_; 199 base::OneShotTimer<AccountTrackerService> timer_;
200 200
201 // Holds references to refresh token annotation requests keyed by account_id. 201 // Holds references to refresh token annotation requests keyed by account_id.
202 base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>> 202 base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>>
203 refresh_token_annotation_requests_; 203 refresh_token_annotation_requests_;
204 204
205 DISALLOW_COPY_AND_ASSIGN(AccountTrackerService); 205 DISALLOW_COPY_AND_ASSIGN(AccountTrackerService);
206 }; 206 };
207 207
208 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ 208 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_
OLDNEW
« no previous file with comments | « components/signin/core/browser/about_signin_internals.h ('k') | components/signin/core/browser/gaia_cookie_manager_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698