Index: components/history/core/browser/thumbnail_database.h |
diff --git a/components/history/core/browser/thumbnail_database.h b/components/history/core/browser/thumbnail_database.h |
index 697faf3abec0a6d18d3dc8639ae869e732116ad8..ae98b49cef8cdf487454573d199a19ef347c7fbb 100644 |
--- a/components/history/core/browser/thumbnail_database.h |
+++ b/components/history/core/browser/thumbnail_database.h |
@@ -66,6 +66,11 @@ class ThumbnailDatabase { |
// true try to trim all unused cache, otherwise trim by half. |
void TrimMemory(bool aggressively); |
+ // Get all on-demand favicon bitmaps that have been last requested prior to |
+ // |threshold|. |
+ std::map<favicon_base::FaviconID, FaviconURLs> GetOldOnDemandFavicons( |
+ base::Time threshold); |
+ |
// Favicon Bitmaps ----------------------------------------------------------- |
// Returns true if there are favicon bitmaps for |icon_id|. If |
@@ -200,6 +205,10 @@ class ThumbnailDatabase { |
// Returns true if the deletion succeeded. |
bool DeleteIconMappings(const GURL& page_url); |
+ // Deletes the icon mapping entries for the given favicon. |
+ // Returns true if the deletion succeeded. |
+ bool DeleteIconMappingsForFaviconId(favicon_base::FaviconID id); |
+ |
// Deletes the icon mapping with |mapping_id|. |
// Returns true if the deletion succeeded. |
bool DeleteIconMapping(IconMappingID mapping_id); |