Description[ServiceWorkerCache] Reland backend state CL
Reland of: https://codereview.chromium.org/701403002/
Reverted here: https://codereview.chromium.org/709003003/
InitDone() made an illegal state transition from BACKEND_CLOSED to BACKEND_OPEN. I removed that transition, which means that pending operations will exit early instead of complete, so I updated the test expectations.
I also added some new testing framework to be able to delay not only cache backend creation but backend functions themselves, so far only OpenEntry. This is used to recreate the dcheck crash discovered by the layout tests in https://crbug.com/431163
I don't intend to commit until after branch cut as this CL is mostly code cleanup and new tests.
BUG=430884
Committed: https://crrev.com/6d719ce3c33f68f79a80a034363c7749e9fed756
Cr-Commit-Position: refs/heads/master@{#303648}
Patch Set 1 : Reverted CL #Patch Set 2 : Close now cancels pending operations that require the backend #Patch Set 3 : Nits #Patch Set 4 : Rebase #Patch Set 5 : Nit #
Messages
Total messages: 15 (8 generated)
|