service worker: Remove "{Associate/Disassociate}Registration" IPC messages.
The renderer-side ServiceWorkerDispatcher had OnAssociateRegistration, which was either called via IPC for service worker controllees, or directly from ServiceWorkerNetworkProvider for "controllers" (service worker execution contexts). But service worker controllees don't actually need to keep track of the associated registration. I think we needed this in old times when there were things like navigator.serviceWorker.ready had to be populated with a registration immediately <https://codereview.chromium.org/477593007>, now it's an async API that asks the browser for the registration <https://codereview.chromium.org/894973003>. Similarly, we had OnDisassociateRegistration, but once OnAssociateRegistration IPC is removed, all it did was set the controller to nullptr, so it can be replaced with SetController. It's never called for service worker execution contexts. There's more simplificiation possible here, we can possibly remove the whole ProviderContext interface as now there are no common functions between controllees and controllers, but that's for follow-up work. TBR=tsepez for removing messages from service_worker_messages.h Change-Id: I8b24c831e850351b7da955f80006d1cf51039095 Reviewed-on: https://chromium-review.googlesource.com/599092Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#492000}
Showing
Please register or sign in to comment