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

Issue 2753583002: Add the JobComplete callback and error/interrupt information (Closed)

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

Description

Add the JobComplete callback and error/interrupt information This adds a way for the JobController to communicate the completion of a background fetch job. It also expands the state tracking for the individual download requests so that the system can tell if requests succeeded or were cancelled. BUG=692621 Review-Url: https://codereview.chromium.org/2753583002 Cr-Commit-Position: refs/heads/master@{#458000} Committed: https://chromium.googlesource.com/chromium/src/+/b56e7169125edf091bf4f5b6a4e830218653f880

Patch Set 1 #

Patch Set 2 : Missed two files because of rebasing, oops. #

Total comments: 28

Patch Set 3 : Converted callback to OnceClosure and fixed nits. #

Total comments: 8

Patch Set 4 : Code review changes #

Patch Set 5 : added argument name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -42 lines) Patch
M content/browser/background_fetch/background_fetch_context.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.cc View 1 2 2 chunks +14 lines, -1 line 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager_unittest.cc View 2 chunks +20 lines, -4 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.h View 1 2 3 chunks +9 lines, -5 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.cc View 1 2 3 2 chunks +13 lines, -7 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller_unittest.cc View 1 2 5 chunks +14 lines, -1 line 0 comments Download
M content/browser/background_fetch/background_fetch_job_data.h View 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_data.cc View 1 2 3 2 chunks +20 lines, -8 lines 0 comments Download
M content/browser/background_fetch/background_fetch_request_info.h View 2 chunks +13 lines, -3 lines 0 comments Download
M content/browser/background_fetch/background_fetch_request_info.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/test/fake_download_item.h View 1 2 3 4 3 chunks +10 lines, -4 lines 0 comments Download
M content/public/test/fake_download_item.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (9 generated)
harkness
3 years, 9 months ago (2017-03-14 18:41:07 UTC) #2
Peter Beverloo
https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_context.cc File content/browser/background_fetch/background_fetch_context.cc (right): https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_context.cc#newcode73 content/browser/background_fetch/background_fetch_context.cc:73: job_info.guid())); We need to clear job_map_ in ShutdownOnIO. This ...
3 years, 9 months ago (2017-03-15 16:53:39 UTC) #3
harkness
https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_context.cc File content/browser/background_fetch/background_fetch_context.cc (right): https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_context.cc#newcode73 content/browser/background_fetch/background_fetch_context.cc:73: job_info.guid())); On 2017/03/15 16:53:38, Peter Beverloo wrote: > We ...
3 years, 9 months ago (2017-03-16 11:41:10 UTC) #4
Peter Beverloo
lgtm https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_data_manager_unittest.cc File content/browser/background_fetch/background_fetch_data_manager_unittest.cc (right): https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_data_manager_unittest.cc#newcode76 content/browser/background_fetch/background_fetch_data_manager_unittest.cc:76: DownloadItem::DownloadState::MAX_DOWNLOAD_STATE); On 2017/03/16 11:41:09, harkness wrote: > On ...
3 years, 9 months ago (2017-03-16 12:37:10 UTC) #5
harkness
https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_data_manager_unittest.cc File content/browser/background_fetch/background_fetch_data_manager_unittest.cc (right): https://codereview.chromium.org/2753583002/diff/20001/content/browser/background_fetch/background_fetch_data_manager_unittest.cc#newcode76 content/browser/background_fetch/background_fetch_data_manager_unittest.cc:76: DownloadItem::DownloadState::MAX_DOWNLOAD_STATE); On 2017/03/16 12:37:09, Peter Beverloo wrote: > On ...
3 years, 9 months ago (2017-03-17 11:14:11 UTC) #6
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/2753583002/60001
3 years, 9 months ago (2017-03-17 11:14:43 UTC) #9
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/388035)
3 years, 9 months ago (2017-03-17 11:20:45 UTC) #11
harkness
avi@chromium.org: Please review changes in content/public/test/fake_download_item.*
3 years, 9 months ago (2017-03-17 11:40:29 UTC) #13
Avi (use Gerrit)
lgtm
3 years, 9 months ago (2017-03-17 16:38:54 UTC) #14
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/2753583002/80001
3 years, 9 months ago (2017-03-19 17:59:41 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-19 19:02:15 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b56e7169125edf091bf4f5b6a4e8...

Powered by Google App Engine
This is Rietveld 408576698