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

Issue 1728583002: Simplify DownloadRequestHandle by using WebContentsGetter (Closed)

Created:
4 years, 10 months ago by Charlie Harrison
Modified:
4 years, 10 months ago
Reviewers:
asanka, clamy
CC:
asanka, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify DownloadRequestHandle by using a WebContentsGetter This patch removes storing child ids / rvids in favor of a callback. The callback also removes the need for some duplicate logic. BUG=472869 Committed: https://crrev.com/cb2bdfabf238ccd33584a26a15a7650678e1949c Cr-Commit-Position: refs/heads/master@{#377880}

Patch Set 1 #

Total comments: 9

Patch Set 2 : asanka@ review + nuke DebugString #

Patch Set 3 : remove NullContents and an include #

Total comments: 2

Patch Set 4 : default callback constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -122 lines) Patch
M content/browser/download/download_create_info.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/download/download_create_info.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M content/browser/download/download_request_handle.h View 1 2 4 chunks +4 lines, -24 lines 0 comments Download
M content/browser/download/download_request_handle.cc View 1 2 3 3 chunks +10 lines, -73 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 2 chunks +6 lines, -8 lines 0 comments Download
M content/browser/download/save_package.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/download/url_downloader.cc View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
Charlie Harrison
PTAL :) https://codereview.chromium.org/1728583002/diff/1/content/browser/download/download_request_handle.cc File content/browser/download/download_request_handle.cc (left): https://codereview.chromium.org/1728583002/diff/1/content/browser/download/download_request_handle.cc#oldcode70 content/browser/download/download_request_handle.cc:70: if (IsBrowserSideNavigationEnabled()) { clamy@, this is all ...
4 years, 10 months ago (2016-02-23 19:22:49 UTC) #3
asanka
https://codereview.chromium.org/1728583002/diff/1/content/browser/download/download_request_handle.cc File content/browser/download/download_request_handle.cc (right): https://codereview.chromium.org/1728583002/diff/1/content/browser/download/download_request_handle.cc#newcode17 content/browser/download/download_request_handle.cc:17: WebContents* NullContents() { On 2016/02/23 at 19:22:49, csharrison wrote: ...
4 years, 10 months ago (2016-02-24 20:02:16 UTC) #5
Charlie Harrison
Thanks! https://codereview.chromium.org/1728583002/diff/1/content/browser/download/download_request_handle.cc File content/browser/download/download_request_handle.cc (right): https://codereview.chromium.org/1728583002/diff/1/content/browser/download/download_request_handle.cc#newcode17 content/browser/download/download_request_handle.cc:17: WebContents* NullContents() { On 2016/02/24 at 20:02:16, asanka ...
4 years, 10 months ago (2016-02-25 15:49:55 UTC) #6
asanka
lgtm % nits https://codereview.chromium.org/1728583002/diff/40001/content/browser/download/download_request_handle.cc File content/browser/download/download_request_handle.cc (right): https://codereview.chromium.org/1728583002/diff/40001/content/browser/download/download_request_handle.cc#newcode23 content/browser/download/download_request_handle.cc:23: : web_contents_getter_(content::ResourceRequestInfo::WebContentsGetter()) {} Nit: Don't explicitly ...
4 years, 10 months ago (2016-02-25 16:19:10 UTC) #7
Charlie Harrison
Thanks asanka@! clamy@, could you sanity check the PlzNavigate changes? https://codereview.chromium.org/1728583002/diff/40001/content/browser/download/download_request_handle.cc File content/browser/download/download_request_handle.cc (right): https://codereview.chromium.org/1728583002/diff/40001/content/browser/download/download_request_handle.cc#newcode23 ...
4 years, 10 months ago (2016-02-25 16:53:58 UTC) #8
clamy
Thanks! Lgtm, nice to see this specialized code going away.
4 years, 10 months ago (2016-02-26 13:56:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728583002/60001
4 years, 10 months ago (2016-02-26 14:04:00 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-26 14:08:27 UTC) #13
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 14:09:35 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cb2bdfabf238ccd33584a26a15a7650678e1949c
Cr-Commit-Position: refs/heads/master@{#377880}

Powered by Google App Engine
This is Rietveld 408576698