Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: chrome/browser/history/history_types.h

Issue 10815068: Changes favicon database to support storing bitmaps of different sizes for the same icon_url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved some of the android stuff to 10831341 Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_types.h
diff --git a/chrome/browser/history/history_types.h b/chrome/browser/history/history_types.h
index b12d97cbbc747eeb4a304d7f13c8060d37698773..6ae787e32c0c599a0088fe98730ecb62f5ffe57a 100644
--- a/chrome/browser/history/history_types.h
+++ b/chrome/browser/history/history_types.h
@@ -22,6 +22,7 @@
#include "chrome/common/thumbnail_score.h"
#include "content/public/common/page_transition_types.h"
#include "googleurl/src/gurl.h"
+#include "ui/gfx/size.h"
class PageUsageData;
@@ -42,6 +43,7 @@ typedef int64 StarID; // Unique identifier for star entries.
typedef int64 UIStarID; // Identifier for star entries that come from the UI.
typedef int64 DownloadID; // Identifier for a download.
typedef int64 FaviconID; // For favicons.
+typedef int64 FaviconBitmapID; // Identifier for a bitmap in a favicon.
typedef int64 SegmentID; // URL segments for the most visited view.
typedef int64 IconMappingID; // For page url and icon mapping.
@@ -741,6 +743,8 @@ base::Time AutocompleteAgeThreshold();
// AutocompleteAgeThreshold() (or any other desired time in the past).
bool RowQualifiesAsSignificant(const URLRow& row, const base::Time& threshold);
+// Favicons -------------------------------------------------------------------
+
// Defines the icon types. They are also stored in icon_type field of favicons
// table.
enum IconType {
@@ -792,6 +796,24 @@ struct FaviconData {
history::IconType icon_type;
};
+// Defines a favicon bitmap stored in the history backend.
+struct FaviconBitmap {
+ // The unique id of the bitmap.
sky 2012/08/16 16:12:57 Add constructor/destructor and put implementations
+ FaviconBitmapID bitmap_id;
+
+ // The id of the favicon to which the bitmap belongs to.
+ FaviconID icon_id;
+
+ // Time at which |bitmap_data| was last updated.
+ base::Time last_updated;
+
+ // The bits of the bitmap.
+ scoped_refptr<base::RefCountedMemory> bitmap_data;
+
+ // The pixel dimensions of bitmap_data.
+ gfx::Size pixel_size;
+};
+
// Abbreviated information about a visit.
struct BriefVisitInfo {
URLID url_id;

Powered by Google App Engine
This is Rietveld 408576698