commit | eceabc880d1e42308e259e52492cf8576235af33 | [log] [tgz] |
---|---|---|
author | Mario Sanchez Prada <mario@igalia.com> | Wed Mar 20 16:43:26 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 20 16:43:26 2019 |
tree | ad4fe742702d5d1663c117382f679118f27e9c7c | |
parent | d23b32b0887bc14556a9c932c674217cea624931 [diff] |
Explicitly use CompletionRepeatingCallback in //c/b/cache_storage There are cases where base::AdaptCallbackForRepeating() needs to be used in cache_storage_blob_to_disk_cache.cc and cache_storage_cache.cc to adapt OnceCallback callbacks so that they can run either right after invoking the operation at hand (when rv != net::ERR_IO_PENDING), from the same calling function, or once the asynchronous operation has been completed. In these cases, let's explicitly declare those adapted callbacks as repeating ones instead of using CompletionCallback, which will eventually be changed to alias CompletionOnceCallback instead of CompletionRepeatingCallback. Bug: 714018, 807724 Change-Id: Iacf223b439fdce99bae429fb5f62ad58f63169fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1528242 Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#642552}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .