Image Fetcher: Add CacheStrategy to CachedImageMetadataProto.
CacheStrategy enum is added to the CachedImageMetadataProto to control the life cycle of cached image files. Also we plumb the expiration_interval to metadata leveldb. When this optional has value, the CachedImageMetadataProto will use CacheStrategy::HOLD_UNTIL_EXPIRED, otherwise use the default BEST_EFFORT. Test coverage is added in *ImageMetadataStoreLevelDBTest.Save(). TBR=jianli@chromium.org Bug: 1067049,1058534 Change-Id: I97080fcc85e3851868ee4c33e2c4b9fca2507744 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2141132 Commit-Queue: Xing Liu <xingliu@chromium.org> Reviewed-by:Brandon Wylie <wylieb@chromium.org> Cr-Commit-Position: refs/heads/master@{#757660}
Showing
Please register or sign in to comment