Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Issue 2708943002: Create the BackgroundFetchBatchManager and initiate a download. (Closed)

Created:
3 years, 10 months ago by harkness
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create the BackgroundFetchBatchManager and initiate a download. The BatchManager will be the component in the BackgroundFetch service that takes care of tracking which particular downloads in batch have completed and which ones are still in progress. This CL adds the framework for the BatchManager as well as the new BatchRequest skeleton which collects multiple FetchRequests into a single batch. Currently the BatchManager just starts a download, it's not doing any observation of the download system. That will be in the next CL. BUG=692621, 692544 Review-Url: https://codereview.chromium.org/2708943002 Cr-Commit-Position: refs/heads/master@{#453627} Committed: https://chromium.googlesource.com/chromium/src/+/a247d9bf7b2082393dd172c0d78c33b044d646e2

Patch Set 1 #

Total comments: 33

Patch Set 2 : Integrated code review comments and added BackgroundFetchDataManager::BatchData which feeds FetchRe… #

Total comments: 58

Patch Set 3 : Fixed code review issues. #

Patch Set 4 : Mass rename #

Patch Set 5 : More renaming and comment cleanup #

Patch Set 6 : Last bit of rename cleanup #

Patch Set 7 : Moved JobData into a stand-alone class and renamed to BackgroundFetchJobData #

Total comments: 27

Patch Set 8 : fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+587 lines, -119 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.cc View 1 2 3 4 5 6 3 chunks +13 lines, -7 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.h View 1 2 3 4 5 6 7 2 chunks +18 lines, -6 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -12 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +42 lines, -9 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_controller.h View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_controller.cc View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_data.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_data.cc View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_info.h View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_job_info.cc View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_request_info.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A content/browser/background_fetch/background_fetch_request_info.cc View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M content/browser/background_fetch/fetch_request.h View 1 2 3 1 chunk +0 lines, -46 lines 0 comments Download
M content/browser/background_fetch/fetch_request.cc View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
harkness
3 years, 10 months ago (2017-02-21 16:00:50 UTC) #2
Peter Beverloo
https://codereview.chromium.org/2708943002/diff/1/content/browser/BUILD.gn File content/browser/BUILD.gn (right): https://codereview.chromium.org/2708943002/diff/1/content/browser/BUILD.gn#newcode326 content/browser/BUILD.gn:326: "background_fetch/batch_request.h", These files aren't included in this CL? https://codereview.chromium.org/2708943002/diff/1/content/browser/background_fetch/background_fetch_batch_manager.cc ...
3 years, 10 months ago (2017-02-23 12:14:59 UTC) #7
harkness
This ended up being a larger update than I intended because of my git-badness. This ...
3 years, 10 months ago (2017-02-23 17:08:41 UTC) #8
Peter Beverloo
Sorry for the lengthy list of comments.. There are a few design patterns in here ...
3 years, 10 months ago (2017-02-24 02:05:16 UTC) #13
harkness
Responding to your higher level comments: - Minimize copies. I have a tendency when I'm ...
3 years, 10 months ago (2017-02-24 11:47:11 UTC) #14
Peter Beverloo
Thanks for the responses. Did you forget to upload a new patch set? On 2017/02/24 ...
3 years, 10 months ago (2017-02-24 15:43:14 UTC) #15
harkness
All renames completed and JobData moved to a stand alone class. After our discussion on ...
3 years, 9 months ago (2017-02-27 16:55:36 UTC) #16
Peter Beverloo
lgtm https://codereview.chromium.org/2708943002/diff/120001/content/browser/background_fetch/background_fetch_context.h File content/browser/background_fetch/background_fetch_context.h (right): https://codereview.chromium.org/2708943002/diff/120001/content/browser/background_fetch/background_fetch_context.h#newcode47 content/browser/background_fetch/background_fetch_context.h:47: void CreateRequest(const BackgroundFetchJobInfo& job_info, Something to consider: Blink ...
3 years, 9 months ago (2017-02-28 03:32:55 UTC) #17
harkness
https://codereview.chromium.org/2708943002/diff/120001/content/browser/background_fetch/background_fetch_context.h File content/browser/background_fetch/background_fetch_context.h (right): https://codereview.chromium.org/2708943002/diff/120001/content/browser/background_fetch/background_fetch_context.h#newcode47 content/browser/background_fetch/background_fetch_context.h:47: void CreateRequest(const BackgroundFetchJobInfo& job_info, On 2017/02/28 03:32:54, Peter Beverloo ...
3 years, 9 months ago (2017-02-28 11:31:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2708943002/140001
3 years, 9 months ago (2017-02-28 11:32:16 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/374477)
3 years, 9 months ago (2017-02-28 11:38:31 UTC) #23
harkness
avi@ could you please take a look at content/browser/BUILD.gn? Thanks! Jen
3 years, 9 months ago (2017-02-28 11:42:02 UTC) #25
Avi (use Gerrit)
LGTM
3 years, 9 months ago (2017-02-28 15:49:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2708943002/140001
3 years, 9 months ago (2017-02-28 16:57:00 UTC) #32
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 17:04:27 UTC) #35
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/a247d9bf7b2082393dd172c0d78c...

Powered by Google App Engine
This is Rietveld 408576698