DescriptionImplement GetJobResponse and merge JobData into DataManager.
This CL has two major changes. The first is the addition of the
GetJobResponse call on the DataManager. This Creates a new (and likely
temporary) BackgroundFetchJobResponseData which is owned by the JobInfo
and exists to collect the information needed to construct the Response
that will eventually be sent to Mojo.
The second major change is merging the JobData back into the DataManager.
The JobData was always intended as a cache layer to assist in fetches
involving large numbers of files in a batch, but given the desire to
reduce the memory footprint of Chrome and the relative rarity of these
operations, the cache layer is being removed in favor of storage accesses.
Minor changes:
* More attempts to isolate the eventual storage interface.
* Methods on the JobData which were moved to the DataManager are now virtual
for testing.
* DataManager takes a BrowserContext* instead of BackgroundFetchContext*.
* Much of the batch management which was in JobData is now handled in
BackgroundFetchJobInfo.
BUG=692621
Review-Url: https://codereview.chromium.org/2767373002
Cr-Commit-Position: refs/heads/master@{#459793}
Committed: https://chromium.googlesource.com/chromium/src/+/4a4b593243e2acdedd593b84db51de418a801663
Patch Set 1 #Patch Set 2 : Cleanup #Patch Set 3 : Cleanup bad #Patch Set 4 : Removed temporary BackgroundFetchResponseData and updated GetJobResponse to return the vector of Bl… #Patch Set 5 : cleanup #
Total comments: 24
Patch Set 6 : CR comment #
Total comments: 3
Patch Set 7 : Removed constness #Patch Set 8 : Removed tests and updated switch statement with comment #
Total comments: 4
Patch Set 9 : Rebase with BackgroundFetchRegistrationId patch #Patch Set 10 : Removed typedef and added DISALLOW_COPY_AND_ASSIGN #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 32 (19 generated)
|