Description[Background Sync] Use Mojo IPC to fire background sync events
This patch adds a background sync client service to the renderer process, which
accepts connections from the browser, in order to trigger Sync and PeriodicSync
events in the service worker.
At the browser level, the Sync and PeriodicSync events are identical, so all of
the code in this patch deals only with generic "Sync" events. (The code paths
are the same, and the registration structs differ only in the periodicity
value.) They only diverge in the renderer, once we determine which event in the
service worker script proxy to fire.
BUG=498388
Committed: https://crrev.com/77d52b2ac6ec76c56fc487c14dc405a083a23a28
Cr-Commit-Position: refs/heads/master@{#339874}
Patch Set 1 #Patch Set 2 : Clean up #Patch Set 3 : Rebase and remove IPC from unit tests #Patch Set 4 : Rebase\ #Patch Set 5 : Rebase after cr/1221503003 landed #
Total comments: 4
Patch Set 6 : Rebase after cr/1210643002 landed #Patch Set 7 : Add connection error handler; make type converter safer. #
Total comments: 6
Patch Set 8 : Addressing post-lgtm review comments #Dependent Patchsets: Messages
Total messages: 21 (5 generated)
|