service worker: Intercept responses of registration data update
Before this CL, the callbacks of the following methods were passed directly to mojo remote calls: * UpdateLastUpdateCheckTime * UpdateNavigationPreloadEnabled * UpdateNavigationPreloadHeader As a preparation to support retry for these calls, this CL introduces ServiceWorkerRegistry::DidUpdateRegistration and passes it as the callbacks of remote calls. DidUpdateRegistration keeps the original callbacks and runs the callbacks when ServiceWorkerRegistry gets responses for them. DidUpdateRegistration also checks the result of remote calls. If it's a disk error, it schedules DeleteAndStartOver as the same as other DidXXX callbacks do. This CL doesn't add the retry mechanism for these methods yet. DidUpdateToActiveState is merged into DidUpdateRegistration because it does the same thing. Bug: 1133143 Change-Id: I50bd2f526c9cef03277ae2c3da81a6eb7aa8b63f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2550112Reviewed-by:Matt Falkenhagen <falken@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#829568}
Showing
Please register or sign in to comment