| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |