Create a BackgroundFetchDelegate

Desktop / Chromium - Dan Elphick [chromium.org] - 8 September 2017 11:05 EDT

Factor out the DownloadManager logic from BackgroundFetchDelegateProxy into BackgroundFetchDelegate and BackgroundFetchDelegateImpl.

Bug: 758562 Change-Id: I3fa1caa30ebd34bdf8649ecf0117568b393b5b9e Reviewed-on: https://chromium-review.googlesource.com/645386 Commit-Queue: Dan Elphick

1c0bc74 Create a BackgroundFetchDelegate
content/browser/BUILD.gn | 4 +
.../background_fetch/background_fetch_context.cc | 33 ++-
.../background_fetch/background_fetch_context.h | 3 +
.../background_fetch/background_fetch_delegate.cc | 13 ++
.../background_fetch/background_fetch_delegate.h | 81 +++++++
.../background_fetch_delegate_impl.cc | 166 +++++++++++++++
.../background_fetch_delegate_impl.h | 50 +++++
.../background_fetch_delegate_proxy.cc | 235 ++++++---------------
.../background_fetch_delegate_proxy.h | 34 +--
.../background_fetch_delegate_proxy_unittest.cc | 126 +++++++++++
.../background_fetch_job_controller.cc | 7 +-
.../background_fetch_job_controller.h | 15 +-
.../background_fetch_job_controller_unittest.cc | 15 +-
.../background_fetch_request_info.cc | 6 +-
.../background_fetch_request_info.h | 7 +-
.../background_fetch/background_fetch_response.cc | 4 +-
.../background_fetch/background_fetch_response.h | 2 +-
.../background_fetch_service_unittest.cc | 8 -
content/test/BUILD.gn | 1 +
19 files changed, 582 insertions(+), 228 deletions(-)

Upstream: git.chromium.org


  • Share