commit | 1ada0463f6c0fd8de6ab66edda708b00ebbe5de3 | [log] [tgz] |
---|---|---|
author | Tsuyoshi Horo <horo@chromium.org> | Mon Apr 17 14:53:14 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 17 14:53:14 2023 |
tree | ed144b35e398bf9a5ea98458ea43300ddf8da9f4 | |
parent | 7757b5f43d199f5f8d89e38d96e5d1e353b854bd [diff] |
Introduce SharedDictionaryWriterOnDisk This CL introduces SharedDictionaryWriterOnDisk class which stores the binary of dictionary as an entry of SharedDictionaryDiskCache. Its FinishCallback is called when the entire dictionary binary has been stored to the disk cache, or when an error occurs. This class handles zero-sized data as an error. Currently, SharedDictionaryWriterInMemory's FinishCallback can be called with zero-sized data. To make the behavior consistent, this CL also modifies SharedDictionaryWriterInMemory to call FinishCallback with an error when no data has been written. Also this CL changes SharedDictionaryDiskCache to support using mocked Disk Cache backend for testing Low-Coverage-Reason: Not reached cases in switch statement. Bug: 1413922 Change-Id: I2cbe014a7aad739f3c4010b613824d5bb7e1b42f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4421724 Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Patrick Meenan <pmeenan@chromium.org> Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1131228}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.