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

Issue 13649009: Android: Use a ResourceThrottle to intercept GET downloads. (Closed)

Created:
7 years, 8 months ago by nilesh
Modified:
7 years, 8 months ago
Reviewers:
asanka, joth, qinmin, Nico
CC:
chromium-reviews, joi+watch-content_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org, tburkard+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, jam, sreeram, gideonwald, dominich, gavinp+prer_chromium.org, dominich+watch_chromium.org, David Black, Jered, samarth+watch_chromium.org, tfarina, kmadhusu+watch_chromium.org, melevin, android-webview-reviews_chromium.org, mmenke
Visibility:
Public.

Description

Android: Use a ResourceThrottle to intercept GET downloads. Earlier we used to pass all the relevant bits to WebContentsDelegate::CanDownload This also allows for DownloadRequestLimiter to work on Android (show the infobar when multiple downloads are initiated from a page) BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192740

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -38 lines) Patch
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 3 chunks +0 lines, -18 lines 0 comments Download
A chrome/browser/android/intercept_download_resource_throttle.h View 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/android/intercept_download_resource_throttle.cc View 1 chunk +45 lines, -0 lines 1 comment Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 2 chunks +6 lines, -0 lines 3 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/download_controller_android_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/download_controller_android_impl.cc View 2 chunks +8 lines, -12 lines 0 comments Download
M content/public/browser/android/download_controller_android.h View 1 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
nilesh
7 years, 8 months ago (2013-04-04 23:08:47 UTC) #1
joth
https://codereview.chromium.org/13649009/diff/4001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/13649009/diff/4001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode329 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:329: // If it's from the web, we don't trust ...
7 years, 8 months ago (2013-04-05 00:54:45 UTC) #2
nilesh
https://codereview.chromium.org/13649009/diff/4001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/13649009/diff/4001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode329 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:329: // If it's from the web, we don't trust ...
7 years, 8 months ago (2013-04-05 01:03:37 UTC) #3
joth
On 4 April 2013 18:03, <nileshagrawal@chromium.org> wrote: > > https://codereview.chromium.**org/13649009/diff/4001/chrome/** > browser/renderer_host/chrome_**resource_dispatcher_host_**delegate.cc<https://codereview.chromium.org/13649009/diff/4001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc> > File > ...
7 years, 8 months ago (2013-04-05 01:10:35 UTC) #4
asanka
A couple of questions. Do you intend this CL to not introduce behavior changes? In ...
7 years, 8 months ago (2013-04-05 16:57:35 UTC) #5
nilesh
On 2013/04/05 16:57:35, asanka wrote: > A couple of questions. > > Do you intend ...
7 years, 8 months ago (2013-04-05 17:17:20 UTC) #6
asanka
LGTM.
7 years, 8 months ago (2013-04-05 17:33:47 UTC) #7
nilesh
Nico: chrome/chrome_browser.gypi OWNERS
7 years, 8 months ago (2013-04-05 17:45:45 UTC) #8
Nico
gypi lgtm (as chrome/OWNERS states, it's ok to tbr cls like this)
7 years, 8 months ago (2013-04-06 01:28:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/13649009/4001
7 years, 8 months ago (2013-04-06 04:44:01 UTC) #10
commit-bot: I haz the power
7 years, 8 months ago (2013-04-06 10:33:57 UTC) #11
Message was sent while issue was closed.
Change committed as 192740

Powered by Google App Engine
This is Rietveld 408576698