Index: components/history/core/browser/history_types.h |
diff --git a/components/history/core/browser/history_types.h b/components/history/core/browser/history_types.h |
index 43468238e323c911a71ba4e25507b96a84a2799a..17b97b4a038eccc31009b293b75e9c50db378b6e 100644 |
--- a/components/history/core/browser/history_types.h |
+++ b/components/history/core/browser/history_types.h |
@@ -506,6 +506,24 @@ struct FaviconBitmapIDSize { |
gfx::Size pixel_size; |
}; |
+enum FaviconBitmapType { |
+ // The bitmap gets downloaded while visiting its page. Their life-time is |
+ // bound to the life-time of the corresponding visit in history. |
+ // - These bitmaps are re-downloaded when visiting the page again and the |
+ // last_updated timestamp is old enough. |
+ ON_VISIT, |
+ |
+ // The bitmap gets downloaded because it is demanded by some Chrome UI (while |
+ // not visiting its page). For this reason, their life-time cannot be bound to |
+ // the life-time of the corresponding visit in history. |
+ // - These bitmaps are evicted from the database based on the last time they |
+ // were requested. |
+ // - Furthermore, on-demand bitmaps are immediately marked as expired. Hence, |
+ // they are always replaced by ON_VISIT favicons whenever their page gets |
+ // visited. |
+ ON_DEMAND |
+}; |
+ |
// Defines a favicon bitmap stored in the history backend. |
struct FaviconBitmap { |
FaviconBitmap(); |