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

Unified Diff: chrome/browser/history/android/android_history_types.h

Issue 10802066: Adds support for saving favicon size into history database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as requested by Sky and stevenjb 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/android/android_history_types.h
diff --git a/chrome/browser/history/android/android_history_types.h b/chrome/browser/history/android/android_history_types.h
index ea56399a10994d57140f85bc77416efdfa3b7e5a..c35be55205ec9f687c3d9c0764c8490bbd6f1836 100644
--- a/chrome/browser/history/android/android_history_types.h
+++ b/chrome/browser/history/android/android_history_types.h
@@ -117,11 +117,11 @@ class HistoryAndBookmarkRow {
}
// The favicon related to page if any.
- void set_favicon(const std::vector<unsigned char>& data) {
+ void set_favicon(scoped_refptr<base::RefCountedMemory> data) {
stevenjb 2012/08/15 22:59:18 Shouldn't the arg be a reference to avoid an extra
set_value_explicitly(FAVICON);
favicon_ = data;
}
- const std::vector<unsigned char>& favicon() const {
+ const scoped_refptr<base::RefCountedMemory> favicon() const {
return favicon_;
stevenjb 2012/08/15 22:59:18 Same here?
}
@@ -168,7 +168,7 @@ class HistoryAndBookmarkRow {
string16 title_;
base::Time created_;
base::Time last_visit_time_;
- std::vector<unsigned char> favicon_;
+ scoped_refptr<base::RefCountedMemory> favicon_;
int visit_count_;
bool is_bookmark_;
int64 parent_id_;

Powered by Google App Engine
This is Rietveld 408576698