summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/test_image_store.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix crashes due to gfx::Image unsafe thread passingkkimlabs2015-04-031-4/+7
| | | | | | | | | | | | | | | | | | gfx::Image has |storage_| member which is base::RefCounted, not thread safe. Thus passing around gfx::Image to other threads by copying is incorrect. Workaround by using scoped_ptr and making ImageRecord class RefCountedThreadSafe. Related discussion: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8LqVoXQ_2bo BUG=471800 Review URL: https://codereview.chromium.org/1031293002 Cr-Commit-Position: refs/heads/master@{#323720}
* ★ Record the image dominant color in the image database.lpromero2015-01-231-4/+3
| | | | | | | | | | | | | | | This CL adds a column in the bookmarks images database. It contains the dominant color extracted from the image. Since this computation can be lengthy, it is done in the background, when the image is stored in the database. For old databases, a migration path is provided and the dominant color is computed and stored upon querying the image for the first time. BUG=448443 Review URL: https://codereview.chromium.org/875463003 Cr-Commit-Position: refs/heads/master@{#312916}
* Standardize usage of virtual/override/final in components/dcheng2014-10-211-11/+11
| | | | | | | | | BUG=417463 TBR=blundell@chromium.org Review URL: https://codereview.chromium.org/666133002 Cr-Commit-Position: refs/heads/master@{#300456}
* replace OVERRIDE and FINAL with override and final in components/mostynb2014-10-061-8/+8
| | | | | | | | BUG=417463 Review URL: https://codereview.chromium.org/623133002 Cr-Commit-Position: refs/heads/master@{#298237}
* Add GetStoreSizeInBytes() to ImageStore to know the actual db size.kkimlabs@chromium.org2014-06-021-0/+1
| | | | | | | | | | | | We will limit the enhanced bookmark image store database size to ensure that the db file size is reasonable. So add a function to query the actual file size. BUG=378853 Review URL: https://codereview.chromium.org/305963004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274297 0039d316-1c4b-4281-b951-d872f2087c98
* Local salient image storage for enhanced bookmark experiment.kkimlabs@chromium.org2014-05-111-0/+36
BUG=368034 Review URL: https://codereview.chromium.org/259863007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269703 0039d316-1c4b-4281-b951-d872f2087c98