| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 Suggestion(); | 121 Suggestion(); |
| 122 ~Suggestion(); | 122 ~Suggestion(); |
| 123 | 123 |
| 124 Suggestion(Suggestion&&); | 124 Suggestion(Suggestion&&); |
| 125 Suggestion& operator=(Suggestion&&); | 125 Suggestion& operator=(Suggestion&&); |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 DISALLOW_COPY_AND_ASSIGN(Suggestion); | 128 DISALLOW_COPY_AND_ASSIGN(Suggestion); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 MostVisitedSites(PrefService* prefs, | 131 MostVisitedSites(scoped_refptr<base::SequencedWorkerPool> blocking_pool, |
| 132 PrefService* prefs, |
| 132 const TemplateURLService* template_url_service, | 133 const TemplateURLService* template_url_service, |
| 133 variations::VariationsService* variations_service, | 134 variations::VariationsService* variations_service, |
| 134 net::URLRequestContextGetter* download_context, | 135 net::URLRequestContextGetter* download_context, |
| 135 const base::FilePath& popular_sites_directory, | 136 const base::FilePath& popular_sites_directory, |
| 136 scoped_refptr<history::TopSites> top_sites, | 137 scoped_refptr<history::TopSites> top_sites, |
| 137 suggestions::SuggestionsService* suggestions, | 138 suggestions::SuggestionsService* suggestions, |
| 138 MostVisitedSitesSupervisor* supervisor); | 139 MostVisitedSitesSupervisor* supervisor); |
| 139 | 140 |
| 140 ~MostVisitedSites() override; | 141 ~MostVisitedSites() override; |
| 141 | 142 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 suggestions_subscription_; | 269 suggestions_subscription_; |
| 269 | 270 |
| 270 ScopedObserver<history::TopSites, history::TopSitesObserver> scoped_observer_; | 271 ScopedObserver<history::TopSites, history::TopSitesObserver> scoped_observer_; |
| 271 | 272 |
| 272 MostVisitedSource mv_source_; | 273 MostVisitedSource mv_source_; |
| 273 | 274 |
| 274 std::unique_ptr<PopularSites> popular_sites_; | 275 std::unique_ptr<PopularSites> popular_sites_; |
| 275 | 276 |
| 276 SuggestionsVector current_suggestions_; | 277 SuggestionsVector current_suggestions_; |
| 277 | 278 |
| 279 base::ThreadChecker thread_checker_; |
| 280 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 281 scoped_refptr<base::TaskRunner> blocking_runner_; |
| 282 |
| 278 // For callbacks may be run after destruction. | 283 // For callbacks may be run after destruction. |
| 279 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; | 284 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; |
| 280 | 285 |
| 281 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); | 286 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
| 282 }; | 287 }; |
| 283 | 288 |
| 284 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ | 289 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ |
| OLD | NEW |