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

Side by Side Diff: chrome/browser/android/ntp/most_visited_sites.h

Issue 2012473002: Remove NTP dependency on //content/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thread checker Created 4 years, 6 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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/ntp/most_visited_sites.cc » ('j') | chrome/browser/android/ntp/most_visited_sites.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698