service worker: Add ServiceWorkerRegistry::CreateNewRegistration()
The purpose of this change is to have a single point of creating ServiceWorkerRegistration. This way, * We can hide NewRegistrationId() inside ServiceWorkerRegistry. This is useful because we plan to move id management into the Storage Service and we don't want to expose it other than ServiceWorkerRegistry. * ServiceWorkerRegistry can track all live registrations. In subsequent CLs we plan to hook ServiceWorkerRegistration creation so that ServiceWorkerRegistry can detect if the registration is stored or not. Bug: 1039200 Change-Id: Ieeeb4c3b156488de8fe6a527515ec23998c5ea3e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010599 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#733542}
Showing
Please register or sign in to comment