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

Unified Diff: components/enhanced_bookmarks/persistent_image_store.h

Issue 875463003: ★ Record the image dominant color in the image database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 5 years, 11 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: components/enhanced_bookmarks/persistent_image_store.h
diff --git a/components/enhanced_bookmarks/persistent_image_store.h b/components/enhanced_bookmarks/persistent_image_store.h
index bc715a502746566226b4bd59d7f017990b9ef185..5a0c41d596297ec36a8972a8f23d0be9023700ff 100644
--- a/components/enhanced_bookmarks/persistent_image_store.h
+++ b/components/enhanced_bookmarks/persistent_image_store.h
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "sql/connection.h"
#include "sql/init_status.h"
+#include "sql/meta_table.h"
// The PersistentImageStore is an implementation of ImageStore that persists its
// data on disk.
@@ -19,10 +20,9 @@ class PersistentImageStore : public ImageStore {
explicit PersistentImageStore(const base::FilePath& path);
bool HasKey(const GURL& page_url) override;
void Insert(const GURL& page_url,
- const GURL& image_url,
- const gfx::Image& image) override;
+ const enhanced_bookmarks::ImageRecord& image) override;
void Erase(const GURL& page_url) override;
- std::pair<gfx::Image, GURL> Get(const GURL& page_url) override;
+ enhanced_bookmarks::ImageRecord Get(const GURL& page_url) override;
gfx::Size GetSize(const GURL& page_url) override;
void GetAllPageUrls(std::set<GURL>* urls) override;
void ClearAll() override;
@@ -36,6 +36,7 @@ class PersistentImageStore : public ImageStore {
const base::FilePath path_;
sql::Connection db_;
+ sql::MetaTable meta_table_;
DISALLOW_COPY_AND_ASSIGN(PersistentImageStore);
};
« no previous file with comments | « components/enhanced_bookmarks/image_store_util_ios.mm ('k') | components/enhanced_bookmarks/persistent_image_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698