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

Issue 1977623002: Updates to DownloadUrlParameters in preparation for OOPIF changes (Closed)

Created:
4 years, 7 months ago by brettw
Modified:
4 years, 7 months ago
CC:
asanka, chromium-apps-reviews_chromium.org, chromium-reviews, cmumford, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, extensions-reviews_chromium.org, jam, jsbell+idb_chromium.org, loading-reviews_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updates to DownloadUrlParameters in preparation for OOPIF changes This should have no behavior change except for theoretical crash fix. Renames DownloadUrlParameters::FromWebContents to CreateForWebContentsMainFrame to be more clear what this actually does. Clean up the constructors. WebContentsImpl::SaveFrameWithHeaders is a bit different. The functionality is the same but I separated out the frame computation code so that in the future we can replace the frame with the right one and the rest of the function will be correct (we won't want to use the main frame in the future). Add null check for RenderFrameHost in a RenderViewContextMenu that was previously not checking for null. This is a potential crash if the frame disappears when the menu is open. Make the RenderViewContextMenu construct a DownloadUrlParameters object referencing the frame doing the downloading rather than the main frame of the page. Rename some child_id variables to process_id which makes more sense to me. Add some comments clarifying which RenderViewHost should be used for DownloadUrlParameters and ResourceRequestInfo. Remove "temporary" comment about RenderViewHost from render_frame_host.h. Charlie says this will not go away (this was confusing me and made me thing that the relationship between some of these things is different than it is) but will likely just be renamed in the future). BUG=596283, 482049 Committed: https://crrev.com/760f7448c5798bfd55734e412f09f562e3a469b2 Cr-Commit-Position: refs/heads/master@{#395412}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : merge #

Total comments: 4

Patch Set 4 : fix #

Total comments: 3

Patch Set 5 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -63 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/streams_private/streams_private_apitest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/plugins/plugin_installer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 5 chunks +41 lines, -17 lines 0 comments Download
M content/browser/android/download_controller_android_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/drag_download_file.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_internals_ui.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M content/public/browser/download_url_parameters.h View 1 2 3 4 3 chunks +22 lines, -21 lines 0 comments Download
M content/public/browser/download_url_parameters.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/resource_request_info.h View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
brettw
I'm spinning this patch out underneath the previous one: https://codereview.chromium.org/1836973003/ that sets up some of ...
4 years, 7 months ago (2016-05-12 22:07:54 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977623002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977623002/20001
4 years, 7 months ago (2016-05-12 22:08:12 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/4749) ios-device-gn on ...
4 years, 7 months ago (2016-05-12 22:10:17 UTC) #8
Randy Smith (Not in Mondays)
I'm presuming Asanka will take this--at least, I won't get to it until Monday--but I ...
4 years, 7 months ago (2016-05-12 22:15:02 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977623002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977623002/40001
4 years, 7 months ago (2016-05-12 23:54:59 UTC) #12
brettw
New snap up (merge) with updated description
4 years, 7 months ago (2016-05-12 23:55:52 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/65192) android_chromium_gn_compile_rel on ...
4 years, 7 months ago (2016-05-13 00:10:41 UTC) #15
brettw
fix
4 years, 7 months ago (2016-05-13 17:07:51 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977623002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977623002/60001
4 years, 7 months ago (2016-05-13 17:08:33 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 18:12:27 UTC) #22
asanka
There were a couple of places where we were using ::FromWebContents() to initiatlize DownloadUrlParameters. Looks ...
4 years, 7 months ago (2016-05-13 20:53:42 UTC) #23
brettw
I don't actually understand either of the two cases you called out as fishy very ...
4 years, 7 months ago (2016-05-13 21:20:57 UTC) #24
asanka
Sorry about the delay. I'll get to this first thing in the morning.
4 years, 7 months ago (2016-05-18 02:12:51 UTC) #25
asanka
lgtm. I still think we should associate created downloads with the correct RenderFrame. But it ...
4 years, 7 months ago (2016-05-18 15:26:37 UTC) #26
brettw
On 2016/05/18 15:26:37, asanka wrote: > lgtm. > > I still think we should associate ...
4 years, 7 months ago (2016-05-23 20:12:38 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977623002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977623002/80001
4 years, 7 months ago (2016-05-23 20:14:36 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-23 21:19:36 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 21:21:13 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/760f7448c5798bfd55734e412f09f562e3a469b2
Cr-Commit-Position: refs/heads/master@{#395412}

Powered by Google App Engine
This is Rietveld 408576698