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

Issue 7484061: Use the suggested name from an anchor's 'download' attribute. (Closed)

Created:
9 years, 5 months ago by sadrul
Modified:
9 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr., abarth-chromium, darin (slow to review), Randy Smith (Not in Mondays)
Visibility:
Public.

Description

Use the suggested name from an anchor's 'download' attribute. This uses the feature added in WebKit: https://bugs.webkit.org/show_bug.cgi?id=64580 BUG=89346 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94274

Patch Set 1 #

Patch Set 2 : 2011 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -29 lines) Patch
M chrome/browser/download/download_create_info.h View 1 chunk +0 lines, -3 lines 1 comment Download
M chrome/browser/download/download_item.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/download/download_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_types.cc View 1 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 chunk +6 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/render_view.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sadrul
pawel: please review the changes in chrome/browser/download jam: please review the changes in content/ abart, ...
9 years, 5 months ago (2011-07-24 21:36:31 UTC) #1
sadrul
On 2011/07/24 21:36:31, sadrul wrote: > pawel: please review the changes in chrome/browser/download > > ...
9 years, 5 months ago (2011-07-25 03:54:33 UTC) #2
Randy Smith (Not in Mondays)
Adding Andy to CL for reviewing suggested_name removal, and Asanka for file name generation change. ...
9 years, 5 months ago (2011-07-25 11:41:58 UTC) #3
sadrul
On 2011/07/25 11:41:58, rdsmith wrote: > Adding Andy to CL for reviewing suggested_name removal, and ...
9 years, 5 months ago (2011-07-25 14:03:11 UTC) #4
asanka
On 2011/07/25 14:03:11, sadrul wrote: > On 2011/07/25 11:41:58, rdsmith wrote: > > Adding Andy ...
9 years, 5 months ago (2011-07-25 15:20:03 UTC) #5
sadrul
On 2011/07/25 15:20:03, asanka wrote: > On 2011/07/25 14:03:11, sadrul wrote: > > On 2011/07/25 ...
9 years, 5 months ago (2011-07-25 15:25:23 UTC) #6
asanka
On 2011/07/25 15:25:23, sadrul wrote: > Indeed. The value of the download attribute will be ...
9 years, 5 months ago (2011-07-25 17:49:27 UTC) #7
sadrul
On 2011/07/25 17:49:27, asanka wrote: > On 2011/07/25 15:25:23, sadrul wrote: > > Indeed. The ...
9 years, 5 months ago (2011-07-25 17:52:09 UTC) #8
jam
content lgtm
9 years, 5 months ago (2011-07-25 18:16:48 UTC) #9
ahendrickson
LGTM. When resuming downloads is implemented, we may need a suggested name field. I'll worry ...
9 years, 5 months ago (2011-07-25 19:06:18 UTC) #10
asanka
On 2011/07/25 17:52:09, sadrul wrote: > On 2011/07/25 17:49:27, asanka wrote: > > Could you ...
9 years, 5 months ago (2011-07-25 19:42:02 UTC) #11
sadrul
On 2011/07/25 19:42:02, asanka wrote: > On 2011/07/25 17:52:09, sadrul wrote: > > On 2011/07/25 ...
9 years, 5 months ago (2011-07-25 22:22:30 UTC) #12
Paweł Hajdan Jr.
LGTM
9 years, 5 months ago (2011-07-25 23:08:43 UTC) #13
asanka
9 years, 5 months ago (2011-07-26 15:32:46 UTC) #14
On 2011/07/25 22:22:30, sadrul wrote:
> On 2011/07/25 19:42:02, asanka wrote:
> > Have you considered passing the suggested filename as a separate parameter
in
> > DownloadCreateInfo?
> 
> We need to store the suggested filename somewhere until the time a
> DownloadCreateInfo is created because of a click-event on a@download (since
> DownloadCreateInfo is created from a callback). The simplest way is to store
> this information in DownloadSaveInfo. I think this is not only convenient, but
> also a relevant place to store the information (since DownloadSaveInfo "//
Holds
> the information about how to save a download file."). It shouldn't conflict
with
> the current usage of DownloadSaveInfo to store the relevant info for a
> dragged-file.

Ok. Thanks.

LGTM.

Powered by Google App Engine
This is Rietveld 408576698