Chromium Code Reviews| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 Suggestion(); | 117 Suggestion(); |
| 118 ~Suggestion(); | 118 ~Suggestion(); |
| 119 | 119 |
| 120 Suggestion(Suggestion&&); | 120 Suggestion(Suggestion&&); |
| 121 Suggestion& operator=(Suggestion&&); | 121 Suggestion& operator=(Suggestion&&); |
| 122 | 122 |
| 123 private: | 123 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(Suggestion); | 124 DISALLOW_COPY_AND_ASSIGN(Suggestion); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 MostVisitedSites(PrefService* prefs, | 127 MostVisitedSites(scoped_refptr<base::SequencedWorkerPool> blocking_pool, |
|
Marc Treib
2016/05/25 08:39:26
It looks like you actually only need one TaskRunne
sfiera
2016/05/25 08:44:44
That's what I had initially, but bauerb asked to k
blundell
2016/05/25 09:00:24
Yeah, I think that given that this class explicitl
| |
| 128 PrefService* prefs, | |
| 128 const TemplateURLService* template_url_service, | 129 const TemplateURLService* template_url_service, |
| 129 variations::VariationsService* variations_service, | 130 variations::VariationsService* variations_service, |
| 130 net::URLRequestContextGetter* download_context, | 131 net::URLRequestContextGetter* download_context, |
| 131 const base::FilePath& popular_sites_directory, | 132 const base::FilePath& popular_sites_directory, |
| 132 scoped_refptr<history::TopSites> top_sites, | 133 scoped_refptr<history::TopSites> top_sites, |
| 133 suggestions::SuggestionsService* suggestions, | 134 suggestions::SuggestionsService* suggestions, |
| 134 MostVisitedSitesSupervisor* supervisor); | 135 MostVisitedSitesSupervisor* supervisor); |
| 135 | 136 |
| 136 ~MostVisitedSites() override; | 137 ~MostVisitedSites() override; |
| 137 | 138 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 suggestions_subscription_; | 265 suggestions_subscription_; |
| 265 | 266 |
| 266 ScopedObserver<history::TopSites, history::TopSitesObserver> scoped_observer_; | 267 ScopedObserver<history::TopSites, history::TopSitesObserver> scoped_observer_; |
| 267 | 268 |
| 268 MostVisitedSource mv_source_; | 269 MostVisitedSource mv_source_; |
| 269 | 270 |
| 270 std::unique_ptr<PopularSites> popular_sites_; | 271 std::unique_ptr<PopularSites> popular_sites_; |
| 271 | 272 |
| 272 SuggestionsVector current_suggestions_; | 273 SuggestionsVector current_suggestions_; |
| 273 | 274 |
| 275 base::ThreadChecker thread_checker_; | |
| 276 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | |
| 277 | |
| 274 // For callbacks may be run after destruction. | 278 // For callbacks may be run after destruction. |
| 275 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; | 279 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; |
| 276 | 280 |
| 277 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); | 281 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
| 278 }; | 282 }; |
| 279 | 283 |
| 280 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ | 284 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ |
| OLD | NEW |