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

Unified Diff: chrome/browser/android/ntp/popular_sites.h

Issue 1919823002: Update MostVisitedSites observer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/ntp/popular_sites.h
diff --git a/chrome/browser/android/ntp/popular_sites.h b/chrome/browser/android/ntp/popular_sites.h
index 7cc520e93e23d89d4c8660a786c49df1c1a1a676..656b7b3709154b6d043280974a16d04d482871da 100644
--- a/chrome/browser/android/ntp/popular_sites.h
+++ b/chrome/browser/android/ntp/popular_sites.h
@@ -27,27 +27,28 @@ class PrefRegistrySyncable;
class Profile;
+struct PopularSites_Site {
+ PopularSites_Site(const base::string16& title,
+ const GURL& url,
+ const GURL& favicon_url,
+ const GURL& large_icon_url,
+ const GURL& thumbnail_url);
+ PopularSites_Site(const PopularSites_Site& other);
+ ~PopularSites_Site();
+
+ base::string16 title;
+ GURL url;
+ GURL favicon_url;
+ GURL large_icon_url;
+ GURL thumbnail_url;
+};
+
// Downloads and provides a list of suggested popular sites, for display on
// the NTP when there are not enough personalized suggestions. Caches the
// downloaded file on disk to avoid re-downloading on every startup.
class PopularSites {
public:
- struct Site {
- Site(const base::string16& title,
- const GURL& url,
- const GURL& favicon_url,
- const GURL& large_icon_url,
- const GURL& thumbnail_url);
- Site(const Site& other);
- ~Site();
-
- base::string16 title;
- GURL url;
- GURL favicon_url;
- GURL large_icon_url;
- GURL thumbnail_url;
- };
-
+ using Site = PopularSites_Site;
using FinishedCallback = base::Callback<void(bool /* success */)>;
// Usually, the name of the file that's downloaded is based on the user's

Powered by Google App Engine
This is Rietveld 408576698