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

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

Issue 1983063002: Move classes to //components/ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ 6 #define COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/scoped_observer.h" 18 #include "base/scoped_observer.h"
19 #include "chrome/browser/android/ntp/popular_sites.h"
20 #include "components/history/core/browser/history_types.h" 19 #include "components/history/core/browser/history_types.h"
21 #include "components/history/core/browser/top_sites_observer.h" 20 #include "components/history/core/browser/top_sites_observer.h"
21 #include "components/ntp_tiles/popular_sites.h"
22 #include "components/suggestions/proto/suggestions.pb.h" 22 #include "components/suggestions/proto/suggestions.pb.h"
23 #include "components/suggestions/suggestions_service.h" 23 #include "components/suggestions/suggestions_service.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 namespace history { 26 namespace history {
27 class TopSites; 27 class TopSites;
28 } 28 }
29 29
30 namespace suggestions { 30 namespace suggestions {
31 class SuggestionsService; 31 class SuggestionsService;
32 } 32 }
33 33
34 namespace user_prefs { 34 namespace user_prefs {
35 class PrefRegistrySyncable; 35 class PrefRegistrySyncable;
36 } 36 }
37 37
38 namespace variations { 38 namespace variations {
39 class VariationsService; 39 class VariationsService;
40 } 40 }
41 41
42 // Shim interface for SupervisedUserService. 42 // Shim interface for SupervisedUserService.
Marc Treib 2016/05/17 15:50:25 Everything here should go into an ntp_tiles namesp
sfiera 2016/05/18 08:43:42 Ack, next CL.
43 class MostVisitedSitesSupervisor { 43 class MostVisitedSitesSupervisor {
44 public: 44 public:
45 struct Whitelist { 45 struct Whitelist {
46 base::string16 title; 46 base::string16 title;
47 GURL entry_point; 47 GURL entry_point;
48 base::FilePath large_icon_path; 48 base::FilePath large_icon_path;
49 }; 49 };
50 50
51 class Observer { 51 class Observer {
52 public: 52 public:
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 std::unique_ptr<PopularSites> popular_sites_; 292 std::unique_ptr<PopularSites> popular_sites_;
293 293
294 SuggestionsVector current_suggestions_; 294 SuggestionsVector current_suggestions_;
295 295
296 // For callbacks may be run after destruction. 296 // For callbacks may be run after destruction.
297 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; 297 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_;
298 298
299 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); 299 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites);
300 }; 300 };
301 301
302 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_ 302 #endif // COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698