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

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

Issue 2926023003: Rename SupervisorBridge::whitelists() to GetWhiteLists(). (Closed)
Patch Set: Created 3 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 COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ 5 #ifndef COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
6 #define COMPONENTS_NTP_TILES_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>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Pass non-null to set observer, or null to remove observer. 64 // Pass non-null to set observer, or null to remove observer.
65 // If setting observer, there must not yet be an observer set. 65 // If setting observer, there must not yet be an observer set.
66 // If removing observer, there must already be one to remove. 66 // If removing observer, there must already be one to remove.
67 // Does not take ownership. Observer must outlive this object. 67 // Does not take ownership. Observer must outlive this object.
68 virtual void SetObserver(Observer* new_observer) = 0; 68 virtual void SetObserver(Observer* new_observer) = 0;
69 69
70 // If true, |url| should not be shown on the NTP. 70 // If true, |url| should not be shown on the NTP.
71 virtual bool IsBlocked(const GURL& url) = 0; 71 virtual bool IsBlocked(const GURL& url) = 0;
72 72
73 // Explicitly-specified sites to show on NTP. 73 // Explicitly-specified sites to show on NTP.
74 virtual std::vector<Whitelist> whitelists() = 0; 74 virtual std::vector<Whitelist> GetWhitelists() = 0;
75 75
76 // If true, be conservative about suggesting sites from outside sources. 76 // If true, be conservative about suggesting sites from outside sources.
77 virtual bool IsChildProfile() = 0; 77 virtual bool IsChildProfile() = 0;
78 }; 78 };
79 79
80 // Tracks the list of most visited sites and their thumbnails. 80 // Tracks the list of most visited sites and their thumbnails.
81 class MostVisitedSites : public history::TopSitesObserver, 81 class MostVisitedSites : public history::TopSitesObserver,
82 public MostVisitedSitesSupervisor::Observer { 82 public MostVisitedSitesSupervisor::Observer {
83 public: 83 public:
84 // The observer to be notified when the list of most visited sites changes. 84 // The observer to be notified when the list of most visited sites changes.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // For callbacks may be run after destruction, used exclusively for TopSites 249 // For callbacks may be run after destruction, used exclusively for TopSites
250 // (since it's used to detect whether there's a query in flight). 250 // (since it's used to detect whether there's a query in flight).
251 base::WeakPtrFactory<MostVisitedSites> top_sites_weak_ptr_factory_; 251 base::WeakPtrFactory<MostVisitedSites> top_sites_weak_ptr_factory_;
252 252
253 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); 253 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites);
254 }; 254 };
255 255
256 } // namespace ntp_tiles 256 } // namespace ntp_tiles
257 257
258 #endif // COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ 258 #endif // COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc ('k') | components/ntp_tiles/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698