Add ServiceWorkerCacheWriter::Resume() for paused cache writers
This method resumes a cache writer which is paused by enabling pause_when_not_identical option. With this option enabled, a cache writer pauses right after it finds any differences with the cached body and the body from network, and calling Resume() to such paused cache writers makes them resume its internal state machine and complete the remaining read and write to the storage. This method takes a callback, but it is triggered only when the remaining read and write finishes asynchronously. Bug: 648295 Change-Id: I1c01804151bff20fc69ba7d0993447f676e98548 Reviewed-on: https://chromium-review.googlesource.com/1214975 Commit-Queue: Momoko Hattori <momohatt@google.com> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#590231}
Showing
Please register or sign in to comment