DescriptionFirst step to refactor ServiceWorkerVersion to make event dispatching more modular.
As described in https://docs.google.com/document/d/1k3xQuV2cQgygJXMpD4Jf77H88040Vcnixz-XW5o6GMM/edit?pli=1#heading=h.ysf7bzmgf12b,
this CL adds API to allow other code to inform SWVersion about events in
progress, and let SWVersion deal with timeouts and service worker lifetime
management in relation to these events.
On top of that this CL also adds a more generic mechanism for events that
use mojo services to connect to these mojo services (and have connections
to those services automatically close when the worker is stopped).
Finally this CL updates the navigator.connect call to use this new way of
dispatching events. Follow up CLs will update other mojo based events, and
will introduce the infrastructure to also move IPC based events out of SWVersion.
BUG=570820
Committed: https://crrev.com/24f20a4f6da8507e47ace8dd6a43e698d241e647
Cr-Commit-Position: refs/heads/master@{#368353}
Patch Set 1 : #Patch Set 2 : rebase #Patch Set 3 : small fixes #Patch Set 4 : rebase #Patch Set 5 : try to fix windows build #Patch Set 6 : small improvements #Patch Set 7 : rebase #Patch Set 8 : rebase #
Total comments: 6
Patch Set 9 : rebase #Patch Set 10 : nit #Patch Set 11 : add EventType argument to StartRequest #
Total comments: 6
Patch Set 12 : nits #
Total comments: 2
Patch Set 13 : rockot nits #Messages
Total messages: 39 (20 generated)
|