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

Unified Diff: components/enhanced_bookmarks/test_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/test_image_store.h
diff --git a/components/enhanced_bookmarks/test_image_store.h b/components/enhanced_bookmarks/test_image_store.h
index 5acef167c394b0f6d0874d16348500f648336749..460a285c837ba736f6d03665ed518615524e19de 100644
--- a/components/enhanced_bookmarks/test_image_store.h
+++ b/components/enhanced_bookmarks/test_image_store.h
@@ -15,10 +15,9 @@ class TestImageStore : public ImageStore {
TestImageStore();
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;
@@ -28,7 +27,7 @@ class TestImageStore : public ImageStore {
~TestImageStore() override;
private:
- typedef std::map<const GURL, std::pair<gfx::Image, const GURL> > ImageMap;
+ typedef std::map<const GURL, enhanced_bookmarks::ImageRecord> ImageMap;
ImageMap store_;
DISALLOW_COPY_AND_ASSIGN(TestImageStore);
« no previous file with comments | « components/enhanced_bookmarks/persistent_image_store.cc ('k') | components/enhanced_bookmarks/test_image_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698