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

Side by Side Diff: components/ntp_tiles/popular_sites.h

Issue 2069763003: Move ntp_tiles classes to namespace ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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_NTP_TILES_POPULAR_SITES_H_ 5 #ifndef COMPONENTS_NTP_TILES_POPULAR_SITES_H_
6 #define COMPONENTS_NTP_TILES_POPULAR_SITES_H_ 6 #define COMPONENTS_NTP_TILES_POPULAR_SITES_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 class PrefRegistrySyncable; 29 class PrefRegistrySyncable;
30 } 30 }
31 31
32 namespace variations { 32 namespace variations {
33 class VariationsService; 33 class VariationsService;
34 } 34 }
35 35
36 class PrefService; 36 class PrefService;
37 class TemplateURLService; 37 class TemplateURLService;
38 38
39 namespace ntp_tiles {
40
39 // Downloads and provides a list of suggested popular sites, for display on 41 // Downloads and provides a list of suggested popular sites, for display on
40 // the NTP when there are not enough personalized suggestions. Caches the 42 // the NTP when there are not enough personalized suggestions. Caches the
41 // downloaded file on disk to avoid re-downloading on every startup. 43 // downloaded file on disk to avoid re-downloading on every startup.
42 class PopularSites : public net::URLFetcherDelegate { 44 class PopularSites : public net::URLFetcherDelegate {
43 public: 45 public:
44 struct Site { 46 struct Site {
45 Site(const base::string16& title, 47 Site(const base::string16& title,
46 const GURL& url, 48 const GURL& url,
47 const GURL& favicon_url, 49 const GURL& favicon_url,
48 const GURL& large_icon_url, 50 const GURL& large_icon_url,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 PrefService* prefs_; 145 PrefService* prefs_;
144 net::URLRequestContextGetter* download_context_; 146 net::URLRequestContextGetter* download_context_;
145 147
146 scoped_refptr<base::TaskRunner> blocking_runner_; 148 scoped_refptr<base::TaskRunner> blocking_runner_;
147 149
148 base::WeakPtrFactory<PopularSites> weak_ptr_factory_; 150 base::WeakPtrFactory<PopularSites> weak_ptr_factory_;
149 151
150 DISALLOW_COPY_AND_ASSIGN(PopularSites); 152 DISALLOW_COPY_AND_ASSIGN(PopularSites);
151 }; 153 };
152 154
155 } // namespace ntp_tiles
156
153 #endif // COMPONENTS_NTP_TILES_POPULAR_SITES_H_ 157 #endif // COMPONENTS_NTP_TILES_POPULAR_SITES_H_
OLDNEW
« no previous file with comments | « components/ntp_tiles/most_visited_sites_unittest.cc ('k') | components/ntp_tiles/popular_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698