commit | 1bfe9be8aef27c0713748ee112870d8abc3e59a6 | [log] [tgz] |
---|---|---|
author | Rayan Kanso <rayankans@chromium.org> | Mon Nov 05 21:42:46 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Nov 05 21:42:46 2018 |
tree | 0058719080085c269260c509f9a743b1bea2eec2 | |
parent | 87f76187bc214be9d10a69aa4d3681e543c5e312 [diff] |
[Background Fetch] Move ownership of job controllers to scheduler Major changes: - The scheduler owns the job controllers. It is also the data manager / service worker observer now instead of BackgroundFetchContext. - The job controller itself is in charge of processing a fetch. This simplifies the `abort` workflow thanks to weak_ptrs. The scheduler can still be extended to process multiple requests though. - The scheduler cleanup process for a job controller handles the registration cleanup and event dispatching. - The UpdateUI DB tasks and checks and associated checks were removed since the UI can only be updated once when the registration fails/succeeds. - Scheduler::Controller was removed since it doesn't make sense to have anymore now that the scheduler directly owns the controllers (also RequestProvider because it added no value). - There were some other minor readability cleanups along the way. Bug: 850512 Change-Id: Icff68da7ccc20d8112d283843dd2ad6c6d1a9a26 Reviewed-on: https://chromium-review.googlesource.com/c/1297412 Reviewed-by: Jesse Doherty <jwd@chromium.org> Reviewed-by: Peter Beverloo <peter@chromium.org> Commit-Queue: Rayan Kanso <rayankans@chromium.org> Cr-Commit-Position: refs/heads/master@{#605475}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .