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

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

Issue 6651014: Applied the IconType. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: sync Created 9 years, 9 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 bc41758bc5ac508c661406500065354ee15fa0c0..9d0b08202821f754393bb021a8b551ca8113d471 100644
--- a/chrome/browser/history/history_types.h
+++ b/chrome/browser/history/history_types.h
@@ -703,6 +703,30 @@ struct IconMapping {
IconType icon_type;
};
+// Defines the favicon stored in history backend.
+struct FaviconData {
+ FaviconData();
+ ~FaviconData();
+
+ // Returns true if the icon is known and image has data.
+ bool is_valid();
+
+ // Indicates whether the icon is known by the history backend.
+ bool known_icon;
+
+ // The bits of image.
+ scoped_refptr<RefCountedMemory> image_data;
+
+ // Indicates whether image is expired.
+ bool expired;
+
+ // The icon's URL.
+ GURL icon_url;
+
+ // The type of favicon.
+ history::IconType icon_type;
+};
+
} // namespace history
#endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698