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

Issue 9314037: Save As for content retrieved via POST works in most circumstances. (Closed)

Created:
8 years, 10 months ago by cbentzel
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, brettw-cc_chromium.org, jam, mihaip+watch_chromium.org, dcheng, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

"Save As" for content retrieved via POST works in most circumstances. If the content is in the HTTP cache, this will work in the following cases: - "Save Page As" from the wrench menu for non-HTML pages. - Context-menu save image as, or save audio/video plugin as. - ViewHostMsg_SaveURLAs IPC's. This will work for back/forward navigations to an item which was POST'ed, as well as for tabs restored via the TabRestoreService. It does not work for tabs restored via the SessionService, such as after Chrome crashes or for users who have the "Reopen the Pages that were Open Last" option set. This CL currently depends on http://codereview.chromium.org/9317009/ BUG=55551 TEST=DownloadTest.SavePageNonHTMLViaPost Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120494

Patch Set 1 #

Patch Set 2 : Added test #

Patch Set 3 : Tests and cleanup #

Patch Set 4 : Tests and cleanup #

Patch Set 5 : Add test page #

Patch Set 6 : Add test page #

Total comments: 17

Patch Set 7 : I like comments #

Patch Set 8 : Documentation #

Patch Set 9 : Update RDH comment #

Patch Set 10 : Rebase #

Total comments: 2

Patch Set 11 : Update comment #

Patch Set 12 : Fix mock_download_manager #

Patch Set 13 : Fix burn_manager and mock_download_manager #

Patch Set 14 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -40 lines) Patch
M chrome/browser/chromeos/imageburner/burn_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +56 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -12 lines 0 comments Download
A chrome/test/data/downloads/form_page_to_post.html View 1 2 3 4 1 chunk +17 lines, -0 lines 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 1 chunk +1 line, -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 5 chunks +17 lines, -3 lines 0 comments Download
M content/browser/download/drag_download_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +29 lines, -19 lines 0 comments Download
M content/public/browser/download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -1 line 0 comments Download
M content/test/mock_download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
cbentzel
This is an FYI at this point. I'm not expecting a response from you right ...
8 years, 10 months ago (2012-02-01 18:54:40 UTC) #1
cbentzel
I'd like a review at this point. I don't love how some of the logic ...
8 years, 10 months ago (2012-02-02 16:35:45 UTC) #2
Randy Smith (Not in Mondays)
Looks pretty good. * With regard to the duplication of code, I could imagine writing ...
8 years, 10 months ago (2012-02-02 19:46:10 UTC) #3
cbentzel
I'll let you know when I put things in to match your comments. http://codereview.chromium.org/9314037/diff/5039/chrome/browser/download/download_browsertest.cc File ...
8 years, 10 months ago (2012-02-02 19:53:06 UTC) #4
cbentzel
Added comments. http://codereview.chromium.org/9314037/diff/5039/content/browser/download/download_manager_impl.cc File content/browser/download/download_manager_impl.cc (right): http://codereview.chromium.org/9314037/diff/5039/content/browser/download/download_manager_impl.cc#newcode83 content/browser/download/download_manager_impl.cc:83: if (url_params.post_id_ >= 0) { On 2012/02/02 ...
8 years, 10 months ago (2012-02-03 15:54:47 UTC) #5
Randy Smith (Not in Mondays)
LGTM with extra comment request below. http://codereview.chromium.org/9314037/diff/5039/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/9314037/diff/5039/chrome/browser/download/download_browsertest.cc#newcode1820 chrome/browser/download/download_browsertest.cc:1820: false, DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL)); On ...
8 years, 10 months ago (2012-02-03 19:43:06 UTC) #6
cbentzel
Currently rebasing/trying and will get appropriate OWNERS permissions. http://codereview.chromium.org/9314037/diff/5039/content/browser/renderer_host/resource_dispatcher_host.cc File content/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/9314037/diff/5039/content/browser/renderer_host/resource_dispatcher_host.cc#newcode896 content/browser/renderer_host/resource_dispatcher_host.cc:896: if ...
8 years, 10 months ago (2012-02-03 20:29:31 UTC) #7
cbentzel
+jam: content stuff. +mihaip: trivial chrome/browser/extensions change
8 years, 10 months ago (2012-02-03 20:36:11 UTC) #8
jam
lgtm with one nit http://codereview.chromium.org/9314037/diff/1017/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/9314037/diff/1017/content/browser/tab_contents/tab_contents.cc#newcode2284 content/browser/tab_contents/tab_contents.cc:2284: // PDF viewer plugin has ...
8 years, 10 months ago (2012-02-03 20:52:42 UTC) #9
cbentzel
http://codereview.chromium.org/9314037/diff/1017/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/9314037/diff/1017/content/browser/tab_contents/tab_contents.cc#newcode2284 content/browser/tab_contents/tab_contents.cc:2284: // PDF viewer plugin has the save button clicked. ...
8 years, 10 months ago (2012-02-04 14:59:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9314037/10024
8 years, 10 months ago (2012-02-04 16:52:43 UTC) #11
commit-bot: I haz the power
Can't apply patch for file content/browser/download/mock_download_manager.h. While running patch -p1 --forward --force; patching file content/browser/download/mock_download_manager.h ...
8 years, 10 months ago (2012-02-04 18:08:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9314037/3066
8 years, 10 months ago (2012-02-04 19:15:04 UTC) #13
commit-bot: I haz the power
8 years, 10 months ago (2012-02-04 22:09:16 UTC) #14
Change committed as 120494

Powered by Google App Engine
This is Rietveld 408576698