[ServiceWorker] Manage ServiceWorkerHandles per ServiceWorkerProviderHost
As we have already mojofied all legacy IPCs handled by ServiceWorkerHandle, now we no longer need ServiceWorkerDispatcherHost to help routing, the renderer process uses the ServiceWorkerObjectHost Mojo connection to talk with ServiceWorkerHandle directly. Then, this CL moves ServiceWorkerHandles management out from ServiceWorkerDispatcherHost into ServiceWorkerProviderHost, which manages ServiceWorkerHandles keyed by the corresponding service worker's version id. The key logic itself is equivalent with before: ServiceWorkerDispatcherHost managed them keyed by the handle id, which is actually an unique identifier of the (provider_id, version_id) pair. This makes ServiceWorkerDispatcherHost slimmer. BUG=772713 Change-Id: I4131a8a687f05a5fe8e297aaa4d83f74028bb5cf Reviewed-on: https://chromium-review.googlesource.com/964243 Commit-Queue: Han Leon <leon.han@intel.com> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#544305}
Showing
Please register or sign in to comment