|
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}
Total comments: 4
Total comments: 3
|
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
|
Total messages: 34 (16 generated)
|