Index: components/history/core/browser/history_backend.h |
diff --git a/components/history/core/browser/history_backend.h b/components/history/core/browser/history_backend.h |
index cae7870a63f0ed4dc51923139d3f644189b59479..c9ea8b8e61d2297f4ebe918acc41213d9ddf8e0f 100644 |
--- a/components/history/core/browser/history_backend.h |
+++ b/components/history/core/browser/history_backend.h |
@@ -326,13 +326,15 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
const GURL& icon_url, |
const std::vector<SkBitmap>& bitmaps); |
- bool SetLastResortFavicons(const GURL& page_url, |
- favicon_base::IconType icon_type, |
- const GURL& icon_url, |
- const std::vector<SkBitmap>& bitmaps); |
+ bool SetOnDemandFavicons(const GURL& page_url, |
+ favicon_base::IconType icon_type, |
+ const GURL& icon_url, |
+ const std::vector<SkBitmap>& bitmaps); |
void SetFaviconsOutOfDateForPage(const GURL& page_url); |
+ void TouchOnDemandFavicon(const GURL& icon_url); |
+ |
void SetImportedFavicons( |
const favicon_base::FaviconUsageDataList& favicon_usage); |
@@ -528,11 +530,9 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetFaviconsReplaceBitmapData); |
FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
SetFaviconsSameFaviconURLForTwoPages); |
- FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetLastResortFaviconsForEmptyDB); |
- FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
- SetLastResortFaviconsForPageInDB); |
- FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
- SetLastResortFaviconsForIconInDB); |
+ FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetOnDemandFaviconsForEmptyDB); |
+ FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetOnDemandFaviconsForPageInDB); |
+ FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetOnDemandFaviconsForIconInDB); |
FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
UpdateFaviconMappingsAndFetchNoChange); |
FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, MergeFaviconPageURLNotInDB); |
@@ -686,7 +686,7 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
favicon_base::IconType icon_type, |
const GURL& icon_url, |
const std::vector<SkBitmap>& bitmaps, |
- bool bitmaps_are_expired); |
+ FaviconBitmapType type); |
// Used by both UpdateFaviconMappingsAndFetch() and GetFavicon(). |
// If |page_url| is non-null and there is a favicon stored in the database |
@@ -708,7 +708,8 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
// Returns true if any of the bitmap data at |icon_id| is changed as a result |
// of calling this method. |
bool SetFaviconBitmaps(favicon_base::FaviconID icon_id, |
- const std::vector<SkBitmap>& bitmaps); |
+ const std::vector<SkBitmap>& bitmaps, |
+ FaviconBitmapType type); |
// Returns true if the bitmap data at |bitmap_id| equals |new_bitmap_data|. |
bool IsFaviconBitmapDataEqual( |