OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FETCHER_SERVICE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 AccountTrackerService* account_tracker_service_; // Not owned. | 111 AccountTrackerService* account_tracker_service_; // Not owned. |
112 OAuth2TokenService* token_service_; // Not owned. | 112 OAuth2TokenService* token_service_; // Not owned. |
113 SigninClient* signin_client_; // Not owned. | 113 SigninClient* signin_client_; // Not owned. |
114 invalidation::InvalidationService* invalidation_service_; // Not owned. | 114 invalidation::InvalidationService* invalidation_service_; // Not owned. |
115 bool network_fetches_enabled_; | 115 bool network_fetches_enabled_; |
116 std::list<std::string> pending_user_info_fetches_; | 116 std::list<std::string> pending_user_info_fetches_; |
117 base::Time last_updated_; | 117 base::Time last_updated_; |
118 base::OneShotTimer timer_; | 118 base::OneShotTimer timer_; |
119 bool shutdown_called_; | 119 bool shutdown_called_; |
| 120 bool refresh_required_on_load_; |
120 | 121 |
121 std::string child_request_account_id_; | 122 std::string child_request_account_id_; |
122 scoped_ptr<ChildAccountInfoFetcher> child_info_request_; | 123 scoped_ptr<ChildAccountInfoFetcher> child_info_request_; |
123 | 124 |
124 // Holds references to account info fetchers keyed by account_id. | 125 // Holds references to account info fetchers keyed by account_id. |
125 base::ScopedPtrHashMap<std::string, scoped_ptr<AccountInfoFetcher>> | 126 base::ScopedPtrHashMap<std::string, scoped_ptr<AccountInfoFetcher>> |
126 user_info_requests_; | 127 user_info_requests_; |
127 // Holds references to refresh token annotation requests keyed by account_id. | 128 // Holds references to refresh token annotation requests keyed by account_id. |
128 base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>> | 129 base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>> |
129 refresh_token_annotation_requests_; | 130 refresh_token_annotation_requests_; |
130 | 131 |
131 DISALLOW_COPY_AND_ASSIGN(AccountFetcherService); | 132 DISALLOW_COPY_AND_ASSIGN(AccountFetcherService); |
132 }; | 133 }; |
133 | 134 |
134 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ | 135 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ |
OLD | NEW |