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

Issue 1467563002: Use ResourceRequestInfo::GetWebContents in DownloadRequestLimiter (Closed)

Created:
5 years, 1 month ago by clamy
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, loading-reviews_chromium.org, svaldez
Base URL:
https://chromium.googlesource.com/chromium/src.git@web-contents-callback
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ResourceRequestInfo::GetWebContents in DownloadRequestLimiter This CL makes DownloadRequestLimiter use a the callback returned by ResourceRequestInfo::GetWebContents instead of using RFH + RPH IDs. This allows most download browser_tests to work with PlzNavigate enabled. BUG=504347 Committed: https://crrev.com/b830caedd400b87a3394935f4a7304ba53f4d427 Cr-Commit-Position: refs/heads/master@{#362699}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 16

Patch Set 6 : Addressed comments #

Total comments: 10

Patch Set 7 : Addressed Asanka's comments #

Total comments: 4

Patch Set 8 : Addressed davidben's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -83 lines) Patch
M chrome/browser/android/download/mock_download_controller_android.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/android/download/mock_download_controller_android.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/download/download_request_limiter.h View 1 2 3 4 5 6 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/download/download_request_limiter.cc View 1 2 3 4 5 6 3 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/download/download_resource_throttle.h View 1 2 3 4 5 6 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/download/download_resource_throttle.cc View 1 2 3 4 5 6 5 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/download/download_resource_throttle_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/android/download_controller_android_impl.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/download_controller_android_impl.cc View 1 2 3 4 5 3 chunks +5 lines, -12 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 4 5 6 7 3 chunks +1 line, -9 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/android/download_controller_android.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 4 5 6 4 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
clamy
@nasko, davidben: PTAL. This follows yesterday's patch about the WebContents callback.
5 years ago (2015-11-24 15:16:47 UTC) #3
davidben
https://codereview.chromium.org/1467563002/diff/80001/chrome/browser/android/download/mock_download_controller_android.cc File chrome/browser/android/download/mock_download_controller_android.cc (right): https://codereview.chromium.org/1467563002/diff/80001/chrome/browser/android/download/mock_download_controller_android.cc#newcode41 chrome/browser/android/download/mock_download_controller_android.cc:41: WebContents* web_contents, content::WebContents (try bots are unhappy) https://codereview.chromium.org/1467563002/diff/80001/chrome/browser/android/download/mock_download_controller_android.h File ...
5 years ago (2015-11-24 15:51:16 UTC) #4
asanka
CC += svaldez: This is relevant to the WebContents free download requests work you are ...
5 years ago (2015-11-24 16:13:19 UTC) #6
davidben
On 2015/11/24 16:13:19, asanka wrote: > Also, this change passes around a callback that has ...
5 years ago (2015-11-24 16:18:27 UTC) #7
davidben
I don't think this actually affects the downloads resumption stuff. A WebContents-free download should never ...
5 years ago (2015-11-24 16:23:56 UTC) #8
clamy
On 2015/11/24 16:18:27, davidben (slow) wrote: > On 2015/11/24 16:13:19, asanka wrote: > > Also, ...
5 years ago (2015-11-24 16:26:30 UTC) #9
asanka
On 2015/11/24 at 16:26:30, clamy wrote: > On 2015/11/24 16:18:27, davidben (slow) wrote: > > ...
5 years ago (2015-11-24 16:49:24 UTC) #10
asanka
On 2015/11/24 at 16:23:56, davidben wrote: > I don't think this actually affects the downloads ...
5 years ago (2015-11-24 17:11:51 UTC) #11
clamy
Thanks! https://codereview.chromium.org/1467563002/diff/80001/chrome/browser/android/download/mock_download_controller_android.cc File chrome/browser/android/download/mock_download_controller_android.cc (right): https://codereview.chromium.org/1467563002/diff/80001/chrome/browser/android/download/mock_download_controller_android.cc#newcode41 chrome/browser/android/download/mock_download_controller_android.cc:41: WebContents* web_contents, On 2015/11/24 15:51:16, davidben (slow) wrote: ...
5 years ago (2015-11-25 14:02:02 UTC) #12
asanka
I chatted with davidben about the scope of this CL and what to do about ...
5 years ago (2015-11-25 19:33:02 UTC) #13
clamy
Thanks! https://codereview.chromium.org/1467563002/diff/100001/chrome/browser/download/download_resource_throttle.cc File chrome/browser/download/download_resource_throttle.cc (right): https://codereview.chromium.org/1467563002/diff/100001/chrome/browser/download/download_resource_throttle.cc#newcode55 chrome/browser/download/download_resource_throttle.cc:55: OnAcquireFileAccessPermissionDone(false); On 2015/11/25 19:33:02, asanka wrote: > Need ...
5 years ago (2015-11-27 13:29:06 UTC) #14
clamy
@davidben: friendly ping :) @yfriedman: PTAL at the changes in chrome/browser/android.
5 years ago (2015-12-01 10:46:49 UTC) #16
davidben
lgtm https://codereview.chromium.org/1467563002/diff/120001/chrome/browser/download/download_request_limiter.h File chrome/browser/download/download_request_limiter.h (right): https://codereview.chromium.org/1467563002/diff/120001/chrome/browser/download/download_request_limiter.h#newcode187 chrome/browser/download/download_request_limiter.h:187: web_contents_getter, [Hrmf. I was going to suggest this ...
5 years ago (2015-12-01 22:15:15 UTC) #17
Yaron
lgtm
5 years ago (2015-12-01 22:37:17 UTC) #18
clamy
Thanks! @jochen: PTAL at the changes in chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc. https://codereview.chromium.org/1467563002/diff/120001/chrome/browser/download/download_request_limiter.h File chrome/browser/download/download_request_limiter.h (right): https://codereview.chromium.org/1467563002/diff/120001/chrome/browser/download/download_request_limiter.h#newcode187 chrome/browser/download/download_request_limiter.h:187: web_contents_getter, ...
5 years ago (2015-12-02 09:34:00 UTC) #20
jochen (gone - plz use gerrit)
lgtm
5 years ago (2015-12-02 12:31:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467563002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467563002/140001
5 years ago (2015-12-02 13:00:49 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-02 14:09:38 UTC) #26
commit-bot: I haz the power
5 years ago (2015-12-02 14:10:45 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b830caedd400b87a3394935f4a7304ba53f4d427
Cr-Commit-Position: refs/heads/master@{#362699}

Powered by Google App Engine
This is Rietveld 408576698