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

Issue 2727253002: Added DownloadItem::Observer to JobController. (Closed)

Created:
3 years, 9 months ago by harkness
Modified:
3 years, 9 months ago
Reviewers:
Peter Beverloo, awdf
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

Added DownloadItem::Observer to JobController. Previously the JobController would submit requests to the DownloadManager, but then it would never do anything when the requests completed/failed. This CL implements DownloadItem::Observer on JobController, which means that the JobController will be notified of changes to the download. Implementation of actions taken based on the notifications is still in progress, but this provides a basic implementation and a framework for testing the actions going forward. BUG=692621 Review-Url: https://codereview.chromium.org/2727253002 Cr-Commit-Position: refs/heads/master@{#456288} Committed: https://chromium.googlesource.com/chromium/src/+/dfe1dfe7bc684f54d0242262fd98ecde0afb29e0

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 22

Patch Set 3 : Merged changes from per-job JobController CL #

Patch Set 4 : Code review changes #

Total comments: 14

Patch Set 5 : resolved nits #

Patch Set 6 : Added TODO #

Messages

Total messages: 20 (10 generated)
harkness
This has the initial hookup of JobController observing downloads that were started. Next CL will ...
3 years, 9 months ago (2017-03-02 13:53:06 UTC) #2
harkness
3 years, 9 months ago (2017-03-07 17:26:23 UTC) #4
Peter Beverloo
https://codereview.chromium.org/2727253002/diff/20001/content/browser/background_fetch/background_fetch_context.h File content/browser/background_fetch/background_fetch_context.h (right): https://codereview.chromium.org/2727253002/diff/20001/content/browser/background_fetch/background_fetch_context.h#newcode47 content/browser/background_fetch/background_fetch_context.h:47: void JobComplete(const std::string& job_guid); Could we instead give the ...
3 years, 9 months ago (2017-03-08 14:58:20 UTC) #5
harkness
https://codereview.chromium.org/2727253002/diff/20001/content/browser/background_fetch/background_fetch_context.h File content/browser/background_fetch/background_fetch_context.h (right): https://codereview.chromium.org/2727253002/diff/20001/content/browser/background_fetch/background_fetch_context.h#newcode47 content/browser/background_fetch/background_fetch_context.h:47: void JobComplete(const std::string& job_guid); On 2017/03/08 14:58:19, Peter Beverloo ...
3 years, 9 months ago (2017-03-10 13:33:54 UTC) #10
Peter Beverloo
lgtm https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc#newcode30 content/browser/background_fetch/background_fetch_job_controller.cc:30: BackgroundFetchJobController::~BackgroundFetchJobController() {} nit: revert https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc#newcode35 content/browser/background_fetch/background_fetch_job_controller.cc:35: StopObservations(); nit: ...
3 years, 9 months ago (2017-03-10 13:40:52 UTC) #11
harkness
https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc#newcode30 content/browser/background_fetch/background_fetch_job_controller.cc:30: BackgroundFetchJobController::~BackgroundFetchJobController() {} On 2017/03/10 13:40:52, Peter Beverloo wrote: > ...
3 years, 9 months ago (2017-03-10 14:21:01 UTC) #12
Peter Beverloo
https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc#newcode105 content/browser/background_fetch/background_fetch_job_controller.cc:105: if (item) On 2017/03/10 14:21:00, harkness wrote: > On ...
3 years, 9 months ago (2017-03-10 14:25:11 UTC) #13
harkness
https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2727253002/diff/60001/content/browser/background_fetch/background_fetch_job_controller.cc#newcode105 content/browser/background_fetch/background_fetch_job_controller.cc:105: if (item) On 2017/03/10 14:25:11, Peter Beverloo wrote: > ...
3 years, 9 months ago (2017-03-11 20:38:49 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/2727253002/100001
3 years, 9 months ago (2017-03-11 20:39:17 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-11 22:47:40 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/dfe1dfe7bc684f54d0242262fd98...

Powered by Google App Engine
This is Rietveld 408576698