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

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: sync 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
« no previous file with comments | « no previous file | chrome/browser/android/ntp/most_visited_sites.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/ntp/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698