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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void OnRefreshTokenRevoked(const std::string& account_id) override; 108 void OnRefreshTokenRevoked(const std::string& account_id) override;
109 void OnRefreshTokensLoaded() override; 109 void OnRefreshTokensLoaded() override;
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<AccountFetcherService> timer_; 118 base::OneShotTimer timer_;
119 bool shutdown_called_; 119 bool shutdown_called_;
120 120
121 std::string child_request_account_id_; 121 std::string child_request_account_id_;
122 scoped_ptr<ChildAccountInfoFetcher> child_info_request_; 122 scoped_ptr<ChildAccountInfoFetcher> child_info_request_;
123 123
124 // Holds references to account info fetchers keyed by account_id. 124 // Holds references to account info fetchers keyed by account_id.
125 base::ScopedPtrHashMap<std::string, scoped_ptr<AccountInfoFetcher>> 125 base::ScopedPtrHashMap<std::string, scoped_ptr<AccountInfoFetcher>>
126 user_info_requests_; 126 user_info_requests_;
127 // Holds references to refresh token annotation requests keyed by account_id. 127 // Holds references to refresh token annotation requests keyed by account_id.
128 base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>> 128 base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>>
129 refresh_token_annotation_requests_; 129 refresh_token_annotation_requests_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(AccountFetcherService); 131 DISALLOW_COPY_AND_ASSIGN(AccountFetcherService);
132 }; 132 };
133 133
134 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ 134 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_
OLDNEW
« no previous file with comments | « components/rappor/rappor_service.h ('k') | components/signin/core/browser/child_account_info_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698