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

Issue 1418663010: Adding WebContent-free Download (Closed)

Created:
5 years, 1 month ago by svaldez
Modified:
3 years, 11 months ago
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

Adding WebContent-free Download BUG=225901, 7648 Committed: https://crrev.com/6901c9042900fb14aa061369a1064cd293a628f6 Cr-Commit-Position: refs/heads/master@{#364414}

Patch Set 1 #

Patch Set 2 : Fix header. #

Patch Set 3 : Using DownloadResourceHandler directly. #

Patch Set 4 : Cleaning up DRH. #

Patch Set 5 : Cleaning up headers. #

Total comments: 30

Patch Set 6 : Fixing comments. #

Patch Set 7 : Fixing test failures. #

Patch Set 8 : Fix typo. #

Patch Set 9 : Fixing Mock for GetBrowserContext. #

Total comments: 14

Patch Set 10 : Fixing ownership and comments. #

Patch Set 11 : Migrating out to download_request_core. #

Patch Set 12 : Rebase. #

Total comments: 30

Patch Set 13 : Removing Core. #

Total comments: 5

Patch Set 14 : Fixing nits. #

Patch Set 15 : Fixing nits. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+460 lines, -269 lines) Patch
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -13 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +12 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +49 lines, -23 lines 0 comments Download
A + content/browser/download/download_request_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +35 lines, -50 lines 0 comments Download
A + content/browser/download/download_request_core.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 21 chunks +74 lines, -182 lines 0 comments Download
A content/browser/download/url_downloader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +62 lines, -0 lines 0 comments Download
A content/browser/download/url_downloader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +210 lines, -0 lines 1 comment Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
svaldez
Forgot to send this last week. No need to review it yet, mostly just FYI. ...
5 years, 1 month ago (2015-11-16 18:13:18 UTC) #2
svaldez
Re-using some chunks of DownloadResourceHandler to reduce code re-use. This should be ready to review, ...
5 years, 1 month ago (2015-11-17 19:30:35 UTC) #3
asanka
Another alternative is to split out the logic for handling the HTTP response for a ...
5 years, 1 month ago (2015-11-20 19:57:46 UTC) #5
svaldez
https://codereview.chromium.org/1418663010/diff/80001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (left): https://codereview.chromium.org/1418663010/diff/80001/content/browser/download/download_item_impl.cc#oldcode511 content/browser/download/download_item_impl.cc:511: On 2015/11/20 19:57:46, asanka wrote: > In addition, let's ...
5 years, 1 month ago (2015-11-23 15:18:57 UTC) #6
asanka
So haha. Funny story. All this sounded very familiar and it turns out I wrote ...
5 years ago (2015-11-25 15:53:57 UTC) #7
svaldez
https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_item_impl.cc#newcode508 content/browser/download/download_item_impl.cc:508: return IsDownloadResumptionEnabled() && GetURL().SchemeIsHTTPOrHTTPS() && On 2015/11/25 15:53:57, asanka ...
5 years ago (2015-11-25 17:53:28 UTC) #8
asanka
https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_manager_impl.cc File content/browser/download/download_manager_impl.cc (right): https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_manager_impl.cc#newcode131 content/browser/download/download_manager_impl.cc:131: params->render_view_host_routing_id(), On 2015/11/25 at 17:53:28, svaldez wrote: > On ...
5 years ago (2015-11-25 19:43:11 UTC) #9
svaldez
On 2015/11/25 19:43:11, asanka wrote: > https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_manager_impl.cc > File content/browser/download/download_manager_impl.cc (right): > > https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_manager_impl.cc#newcode131 > ...
5 years ago (2015-12-01 20:43:50 UTC) #10
svaldez
On 2015/12/01 20:43:50, svaldez wrote: > On 2015/11/25 19:43:11, asanka wrote: > > > https://codereview.chromium.org/1418663010/diff/160001/content/browser/download/download_manager_impl.cc ...
5 years ago (2015-12-01 21:30:42 UTC) #11
svaldez
On 2015/12/01 21:30:42, svaldez wrote: > On 2015/12/01 20:43:50, svaldez wrote: > > On 2015/11/25 ...
5 years ago (2015-12-02 17:02:39 UTC) #12
asanka
https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_item_impl.cc#newcode1709 content/browser/download/download_item_impl.cc:1709: } else if (GetBrowserContext()) { This condition must always ...
5 years ago (2015-12-08 16:58:33 UTC) #13
asanka
Also, this review cycle was unacceptably slow. Apologies since that was my fault.
5 years ago (2015-12-08 16:59:18 UTC) #14
svaldez
https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_item_impl.cc#newcode1709 content/browser/download/download_item_impl.cc:1709: } else if (GetBrowserContext()) { On 2015/12/08 16:58:32, asanka ...
5 years ago (2015-12-08 20:39:26 UTC) #15
asanka
Only nits other than BeginDownload() returning a scoper for UrlDownloader. https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_request_core.cc File content/browser/download/download_request_core.cc (right): https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_request_core.cc#newcode113 ...
5 years ago (2015-12-08 21:53:56 UTC) #16
svaldez
https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_request_core.cc File content/browser/download/download_request_core.cc (right): https://codereview.chromium.org/1418663010/diff/220001/content/browser/download/download_request_core.cc#newcode113 content/browser/download/download_request_core.cc:113: UMA_HISTOGRAM_TIMES("SB2.DownloadDuration", On 2015/12/08 21:53:56, asanka wrote: > On 2015/12/08 ...
5 years ago (2015-12-09 17:20:41 UTC) #17
asanka
LGTM. Let's ship it. I'd prefer it if we didn't pass raw pointers across threads ...
5 years ago (2015-12-10 16:27:55 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418663010/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418663010/280001
5 years ago (2015-12-10 17:38:45 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-10 18:46:57 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418663010/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418663010/280001
5 years ago (2015-12-10 18:49:37 UTC) #26
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years ago (2015-12-10 18:57:43 UTC) #28
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/6901c9042900fb14aa061369a1064cd293a628f6 Cr-Commit-Position: refs/heads/master@{#364414}
5 years ago (2015-12-10 18:58:26 UTC) #30
jochen (gone - plz use gerrit)
3 years, 11 months ago (2017-01-02 08:08:00 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/1418663010/diff/280001/content/browser/downlo...
File content/browser/download/url_downloader.cc (right):

https://codereview.chromium.org/1418663010/diff/280001/content/browser/downlo...
content/browser/download/url_downloader.cc:42:
request->SetReferrer(referrer.url.spec());
this is broken. compare with
https://cs.chromium.org/chromium/src/content/browser/loader/resource_dispatch...

Powered by Google App Engine
This is Rietveld 408576698