diff options
author | nshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 17:20:34 +0000 |
---|---|---|
committer | nshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 17:20:34 +0000 |
commit | a8ab8866ba372136850107c08afabb8079945afc (patch) | |
tree | de2942a813d6efea5f7c494f0752c0b6a622e12b /chrome/browser/history/top_sites_database.h | |
parent | 6a3ca9862ab2959c6a51595323aee4fc3fae4f2a (diff) | |
download | chromium_src-a8ab8866ba372136850107c08afabb8079945afc.zip chromium_src-a8ab8866ba372136850107c08afabb8079945afc.tar.gz chromium_src-a8ab8866ba372136850107c08afabb8079945afc.tar.bz2 |
Replace --top-sites flag with --no-top-sites flag. TopSites becomes the default.
BUG=none
TEST=manual
Review URL: http://codereview.chromium.org/3054028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/top_sites_database.h')
-rw-r--r-- | chrome/browser/history/top_sites_database.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/chrome/browser/history/top_sites_database.h b/chrome/browser/history/top_sites_database.h index 18ec201..11188a7 100644 --- a/chrome/browser/history/top_sites_database.h +++ b/chrome/browser/history/top_sites_database.h @@ -12,13 +12,12 @@ #include "app/sql/connection.h" #include "base/ref_counted.h" -#include "chrome/browser/history/history_types.h" #include "chrome/browser/history/url_database.h" // For DBCloseScoper. class FilePath; class RefCountedMemory; class SkBitmap; -class TopSites; +class Images; namespace base { class Time; @@ -38,7 +37,7 @@ class TopSitesDatabase { // Returns a list of all URLs currently in the table. virtual void GetPageThumbnails(MostVisitedURLList* urls, std::map<GURL, - TopSites::Images>* thumbnails) = 0; + Images>* thumbnails) = 0; // Set a thumbnail for a URL. |url_rank| is the position of the URL // in the list of TopURLs, zero-based. @@ -46,20 +45,20 @@ class TopSitesDatabase { // thumbnail. virtual void SetPageThumbnail(const MostVisitedURL& url, int url_rank, - const TopSites::Images& thumbnail) = 0; + const Images& thumbnail) = 0; // Update rank of a URL that's already in the database. virtual void UpdatePageRank(const MostVisitedURL& url, int new_rank) = 0; // Convenience wrapper. bool GetPageThumbnail(const MostVisitedURL& url, - TopSites::Images* thumbnail) { + Images* thumbnail) { return GetPageThumbnail(url.url, thumbnail); } // Get a thumbnail for a given page. Returns true iff we have the thumbnail. virtual bool GetPageThumbnail(const GURL& url, - TopSites::Images* thumbnail) = 0; + Images* thumbnail) = 0; // Remove the record for this URL. Returns true iff removed successfully. virtual bool RemoveURL(const MostVisitedURL& url) = 0; @@ -79,7 +78,7 @@ class TopSitesDatabaseImpl : public TopSitesDatabase { // Returns a list of all URLs currently in the table. // WARNING: clears both input arguments. virtual void GetPageThumbnails(MostVisitedURLList* urls, - std::map<GURL, TopSites::Images>* thumbnails); + std::map<GURL, Images>* thumbnails); // Set a thumbnail for a URL. |url_rank| is the position of the URL // in the list of TopURLs, zero-based. @@ -87,7 +86,7 @@ class TopSitesDatabaseImpl : public TopSitesDatabase { // thumbnail and rank. Shift the ranks of other URLs if necessary. virtual void SetPageThumbnail(const MostVisitedURL& url, int new_rank, - const TopSites::Images& thumbnail); + const Images& thumbnail); // Sets the rank for a given URL. The URL must be in the database. // Use SetPageThumbnail if it's not. @@ -95,7 +94,7 @@ class TopSitesDatabaseImpl : public TopSitesDatabase { // Get a thumbnail for a given page. Returns true iff we have the thumbnail. virtual bool GetPageThumbnail(const GURL& url, - TopSites::Images* thumbnail); + Images* thumbnail); // Remove the record for this URL. Returns true iff removed successfully. virtual bool RemoveURL(const MostVisitedURL& url); @@ -108,14 +107,14 @@ class TopSitesDatabaseImpl : public TopSitesDatabase { // Adds a new URL to the database. void AddPageThumbnail(const MostVisitedURL& url, int new_rank, - const TopSites::Images& thumbnail); + const Images& thumbnail); // Sets the page rank. Should be called within an open transaction. void UpdatePageRankNoTransaction(const MostVisitedURL& url, int new_rank); // Updates thumbnail of a URL that's already in the database. void UpdatePageThumbnail(const MostVisitedURL& url, - const TopSites::Images& thumbnail); + const Images& thumbnail); // Returns the URL's current rank or -1 if it is not present. int GetURLRank(const MostVisitedURL& url); |