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_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_BACKEND_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_BACKEND_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_BACKEND_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_BACKEND_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 scoped_ptr<AffiliationDatabase> cache_; | 130 scoped_ptr<AffiliationDatabase> cache_; |
131 scoped_ptr<AffiliationFetcher> fetcher_; | 131 scoped_ptr<AffiliationFetcher> fetcher_; |
132 scoped_ptr<AffiliationFetchThrottler> throttler_; | 132 scoped_ptr<AffiliationFetchThrottler> throttler_; |
133 | 133 |
134 base::Time construction_time_; | 134 base::Time construction_time_; |
135 base::Time last_request_time_; | 135 base::Time last_request_time_; |
136 | 136 |
137 // Contains a FacetManager for each facet URI that need ongoing attention. To | 137 // Contains a FacetManager for each facet URI that need ongoing attention. To |
138 // save memory, managers are discarded as soon as they become redundant. | 138 // save memory, managers are discarded as soon as they become redundant. |
139 base::ScopedPtrHashMap<FacetURI, FacetManager> facet_managers_; | 139 base::ScopedPtrHashMap<FacetURI, scoped_ptr<FacetManager>> facet_managers_; |
140 | 140 |
141 base::WeakPtrFactory<AffiliationBackend> weak_ptr_factory_; | 141 base::WeakPtrFactory<AffiliationBackend> weak_ptr_factory_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(AffiliationBackend); | 143 DISALLOW_COPY_AND_ASSIGN(AffiliationBackend); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace password_manager | 146 } // namespace password_manager |
147 | 147 |
148 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_BACKEND_H_ | 148 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_BACKEND_H_ |
OLD | NEW |