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

Issue 2782553007: Implement the new polling system in the BackgroundFetchJobController (Closed)

Created:
3 years, 8 months ago by Peter Beverloo
Modified:
3 years, 8 months ago
Reviewers:
harkness
CC:
chromium-reviews, Peter Beverloo, darin-cc_chromium.org, jam, harkness+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the new polling system in the BackgroundFetchJobController This CL changes how the BackgroundFetchJobController interacts with the requests that have to be made. It'll be given a sequence of requests when starting a fetch -currently set to a single request-, will fetch them and will then get the next request from the BackgroundFetchDataManager once completed. This significantly simplifies the state we have to maintain, since it only knows about the in-progress requests, deferring knowledge of which requests are pending to the DataManager. The tests have been updated to match this. In effect, Background Fetch requests made by the developer will now actually (sequentially) fetch the files. We still have to feed them back to the developer once all fetches have been completed. BUG=692540 Review-Url: https://codereview.chromium.org/2782553007 Cr-Commit-Position: refs/heads/master@{#460605} Committed: https://chromium.googlesource.com/chromium/src/+/44302d356149f11edfd1e1708e4c171ee073f436

Patch Set 1 #

Total comments: 19

Patch Set 2 : Implement the new polling system in the BFJobController #

Patch Set 3 : Implement the new polling system in the BFJobController #

Patch Set 4 : Implement the new polling system in the BFJobController #

Patch Set 5 : Implement the new polling system in the BFJobController #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -407 lines) Patch
A content/browser/background_fetch/background_fetch_constants.h View 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.h View 1 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.h View 1 5 chunks +40 lines, -18 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.cc View 1 3 chunks +87 lines, -6 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager_unittest.cc View 9 chunks +19 lines, -15 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.h View 1 2 3 4 7 chunks +26 lines, -23 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.cc View 1 2 3 4 4 chunks +99 lines, -79 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller_unittest.cc View 1 2 3 4 1 chunk +236 lines, -257 lines 0 comments Download
M content/browser/background_fetch/background_fetch_request_info.h View 3 chunks +11 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_request_info.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/background_fetch/background_fetch_test_base.h View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (26 generated)
Peter Beverloo
+harkness, wdyt? This needs some more work, but I think it illustrates the direction. Would ...
3 years, 8 months ago (2017-03-28 22:21:21 UTC) #2
harkness
Mostly looks good. I particularly like that you were able to simplify a lot of ...
3 years, 8 months ago (2017-03-29 07:41:28 UTC) #3
Peter Beverloo
PTAL, this is ready for full review now https://codereview.chromium.org/2782553007/diff/1/content/browser/background_fetch/background_fetch_data_manager.cc File content/browser/background_fetch/background_fetch_data_manager.cc (right): https://codereview.chromium.org/2782553007/diff/1/content/browser/background_fetch/background_fetch_data_manager.cc#newcode53 content/browser/background_fetch/background_fetch_data_manager.cc:53: std::queue<BackgroundFetchRequestInfo> ...
3 years, 8 months ago (2017-03-29 13:57:35 UTC) #6
harkness
lgtm https://codereview.chromium.org/2782553007/diff/1/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2782553007/diff/1/content/browser/background_fetch/background_fetch_job_controller.cc#newcode121 content/browser/background_fetch/background_fetch_job_controller.cc:121: // TODO(harkness): Consider how we want to handle ...
3 years, 8 months ago (2017-03-29 15:08:40 UTC) #8
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/2782553007/20001
3 years, 8 months ago (2017-03-29 16:01:45 UTC) #12
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/2782553007/40001
3 years, 8 months ago (2017-03-29 17:50:51 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/336491)
3 years, 8 months ago (2017-03-29 18:22:18 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/2782553007/40001
3 years, 8 months ago (2017-03-29 18:44:54 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/336555)
3 years, 8 months ago (2017-03-29 19:18:25 UTC) #22
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/2782553007/40001
3 years, 8 months ago (2017-03-29 19:23:34 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/336576)
3 years, 8 months ago (2017-03-29 19:57:06 UTC) #26
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/2782553007/60001
3 years, 8 months ago (2017-03-29 20:48:21 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/2782553007/80001
3 years, 8 months ago (2017-03-30 00:20:41 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 00:53:50 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/44302d356149f11edfd1e1708e4c...

Powered by Google App Engine
This is Rietveld 408576698