commit | 9a4538ad8d0bac55bb81aed0b8181a6b5ed1048b | [log] [tgz] |
---|---|---|
author | momohatt <momohatt@google.com> | Tue Sep 11 08:13:44 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Sep 11 08:13:44 2018 |
tree | e6f8e12311b2f6c92be976000b2935de59cfb019 | |
parent | c5990315053b5d925c5ce4bcb4332df9cc9e95e2 [diff] |
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}
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 .