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

Issue 10381122: Add flag to specify if explicitly requested download is from web. (Closed)

Created:
8 years, 7 months ago by Randy Smith (Not in Mondays)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Add flag to specify if explicitly requested download is from web. This allows interposing the DownloadResourceThrottle on all web downloads, not just those occuring because of navigations. BUG=127522 R=darin@chromium.org TEST=Retry example in referenced issue; look for throttling message. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137137

Patch Set 1 #

Total comments: 12

Patch Set 2 : Incorporated comments. #

Total comments: 4

Patch Set 3 : Sync'd to LKGR and integrated into DownloadUrlParams. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -26 lines) Patch
M chrome/browser/download/download_extension_api.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/plugin_installer.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 1 chunk +11 lines, -10 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 4 chunks +5 lines, -2 lines 0 comments Download
M content/public/browser/download_url_parameters.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/download_url_parameters.cc View 1 2 1 chunk +11 lines, -10 lines 0 comments Download
M content/public/browser/resource_dispatcher_host.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Randy Smith (Not in Mondays)
Darin: My apologies, but I think you're the right reviewer for this, both because you ...
8 years, 7 months ago (2012-05-12 16:46:46 UTC) #1
darin (slow to review)
https://chromiumcodereview.appspot.com/10381122/diff/1/chrome/browser/download/download_extension_api.cc File chrome/browser/download/download_extension_api.cc (right): https://chromiumcodereview.appspot.com/10381122/diff/1/chrome/browser/download/download_extension_api.cc#newcode506 chrome/browser/download/download_extension_api.cc:506: false /* from_web */, nit: use C++ style comment ...
8 years, 7 months ago (2012-05-12 18:23:07 UTC) #2
Randy Smith (Not in Mondays)
All comments incorporated; apologies for the style nits. PTAL. https://chromiumcodereview.appspot.com/10381122/diff/1/chrome/browser/download/download_extension_api.cc File chrome/browser/download/download_extension_api.cc (right): https://chromiumcodereview.appspot.com/10381122/diff/1/chrome/browser/download/download_extension_api.cc#newcode506 chrome/browser/download/download_extension_api.cc:506: ...
8 years, 7 months ago (2012-05-12 19:56:37 UTC) #3
darin (slow to review)
LGTM
8 years, 7 months ago (2012-05-13 17:17:45 UTC) #4
benjhayden
Two questions, no objections. https://chromiumcodereview.appspot.com/10381122/diff/2005/chrome/browser/download/download_extension_api.cc File chrome/browser/download/download_extension_api.cc (right): https://chromiumcodereview.appspot.com/10381122/diff/2005/chrome/browser/download/download_extension_api.cc#newcode506 chrome/browser/download/download_extension_api.cc:506: false, // is_content_initiated This |false| ...
8 years, 7 months ago (2012-05-14 13:51:51 UTC) #5
Randy Smith (Not in Mondays)
https://chromiumcodereview.appspot.com/10381122/diff/2005/chrome/browser/download/download_extension_api.cc File chrome/browser/download/download_extension_api.cc (right): https://chromiumcodereview.appspot.com/10381122/diff/2005/chrome/browser/download/download_extension_api.cc#newcode506 chrome/browser/download/download_extension_api.cc:506: false, // is_content_initiated On 2012/05/14 13:51:51, benjhayden_chromium wrote: > ...
8 years, 7 months ago (2012-05-14 15:55:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10381122/2005
8 years, 7 months ago (2012-05-14 15:56:22 UTC) #7
commit-bot: I haz the power
Can't apply patch for file content/browser/download/download_manager_impl.cc. While running patch -p1 --forward --force; patching file content/browser/download/download_manager_impl.cc ...
8 years, 7 months ago (2012-05-14 15:56:27 UTC) #8
Randy Smith (Not in Mondays)
Ben: Could you review my integration with DownloadUrlParams?
8 years, 7 months ago (2012-05-14 21:21:32 UTC) #9
benjhayden
lgtm
8 years, 7 months ago (2012-05-15 13:55:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10381122/15001
8 years, 7 months ago (2012-05-15 14:00:54 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-05-15 15:27:09 UTC) #12
Change committed as 137137

Powered by Google App Engine
This is Rietveld 408576698