summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/top_sites.h
diff options
context:
space:
mode:
authornshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 20:16:02 +0000
committernshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 20:16:02 +0000
commit55faf33066612cbb99c286359f29c6016bd50a55 (patch)
treee02cef0ec103875d713bbc5173f451aa5c43b4ff /chrome/browser/history/top_sites.h
parent37d6c56f4a3397c7dfc9e9b9b1eaa8a50769809e (diff)
downloadchromium_src-55faf33066612cbb99c286359f29c6016bd50a55.zip
chromium_src-55faf33066612cbb99c286359f29c6016bd50a55.tar.gz
chromium_src-55faf33066612cbb99c286359f29c6016bd50a55.tar.bz2
Unpin deleted URLs + better deleting algorithm.
BUG=none TEST=TopSitesTest Review URL: http://codereview.chromium.org/2832091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54003 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/top_sites.h')
-rw-r--r--chrome/browser/history/top_sites.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/history/top_sites.h b/chrome/browser/history/top_sites.h
index 99d20ce..09d0af0 100644
--- a/chrome/browser/history/top_sites.h
+++ b/chrome/browser/history/top_sites.h
@@ -142,6 +142,7 @@ class TopSites : public NotificationObserver,
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, RealDatabase);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, MockDatabase);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, DeleteNotifications);
+ FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLsDeleted);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites);
@@ -183,6 +184,9 @@ class TopSites : public NotificationObserver,
void OnThumbnailAvailable(CancelableRequestProvider::Handle handle,
scoped_refptr<RefCountedBytes> thumbnail);
+ // Sets canonical_urls_ from top_sites_.
+ void GenerateCanonicalURLs();
+
// Saves the set of the top URLs visited by this user. The 0th item is the
// most popular.
// DANGER! This will clear all data from the input argument.