Factor out RequestManager from BackgroundFetchDataManager
RequestManager is a small interface containing all the methods that
JobController calls on DataManager. These methods are all to do with
getting requests off the queue and updating their status. This means
that BackgroundFetchJobController now has no dependency on DataManager.
Also removes the final usage of DataManager in
BackgroundFetchServiceImpl by adding the method to
BackgroundFetchContext instead. As a result the data_manager() getter
can be removed from BackgroundFetchContext.
DataManager is now only used directly by the Context class and the
Database tasks in storage.
[email protected]
Bug: 757760
Change-Id: I959ae0855fe2b9d8c5951f676252404f61aa123c
Reviewed-on: https://chromium-review.googlesource.com/756746
Commit-Queue: Dan Elphick <[email protected]>
Reviewed-by: Anita Woodruff <[email protected]>
Reviewed-by: Peter Beverloo <[email protected]>
Cr-Commit-Position: refs/heads/master@{#514464}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 140d5d2..cc0e307 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -402,6 +402,7 @@
"background_fetch/background_fetch_registration_notifier.h",
"background_fetch/background_fetch_request_info.cc",
"background_fetch/background_fetch_request_info.h",
+ "background_fetch/background_fetch_request_manager.h",
"background_fetch/background_fetch_service_impl.cc",
"background_fetch/background_fetch_service_impl.h",
"background_fetch/storage/cleanup_task.cc",