Add GetStoreSizeInBytes() to ImageStore to know the actual db size.
commit6e2d03a37faa8cde06ca668d841fb34bb4fafdcc
authorkkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 2 Jun 2014 19:16:33 +0000 (2 19:16 +0000)
committerkkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 2 Jun 2014 19:16:33 +0000 (2 19:16 +0000)
treef219c138a84077370f758ef6dfcc53091f16fc40
parenta2a75f57fcab08f4d34b84e35e6cf5505afbd7f8
Add GetStoreSizeInBytes() to ImageStore to know the actual db size.

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
components/enhanced_bookmarks/DEPS
components/enhanced_bookmarks/image_store.h
components/enhanced_bookmarks/image_store_unittest.cc
components/enhanced_bookmarks/persistent_image_store.cc
components/enhanced_bookmarks/persistent_image_store.h
components/enhanced_bookmarks/test_image_store.cc
components/enhanced_bookmarks/test_image_store.h