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

Issue 1306053008: Avoid creating a RenderWidgetHostView for proxies. (Closed)

Created:
5 years, 3 months ago by lfg
Modified:
5 years, 3 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org, site-isolation-reviews_chromium.org, kenrb
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid creating a RenderWidgetHostView for proxies. This change simplifies the RenderViewHost initialization path so that it can avoid creating a RenderWidgetHostView on proxies and swappedout RenderViews. BUG=522237, 526326 Committed: https://crrev.com/bede639284f3a6ffb058809f20b73de39ed13223 Cr-Commit-Position: refs/heads/master@{#348494}

Patch Set 1 #

Patch Set 2 : recreate WidgetViews when reusing RenderView #

Total comments: 14

Patch Set 3 : addressing comments #

Total comments: 16

Patch Set 4 : addressing comments #

Patch Set 5 : adding mainframe checks #

Patch Set 6 : only call InitRenderView when creating the main frame #

Total comments: 1

Patch Set 7 : fixing accessibility #

Patch Set 8 : adding dcheck + rebase #

Total comments: 6

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -69 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -9 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 14 chunks +27 lines, -27 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +12 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +19 lines, -19 lines 0 comments Download
M content/test/test_web_contents.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
lfg
Please take a look!
5 years, 3 months ago (2015-08-28 15:53:25 UTC) #2
Charlie Reis
On 2015/08/28 15:53:25, lfg wrote: > Please take a look! I've always had a hard ...
5 years, 3 months ago (2015-08-28 17:40:22 UTC) #3
lfg
On 2015/08/28 17:40:22, Charlie Reis wrote: > On 2015/08/28 15:53:25, lfg wrote: > > Please ...
5 years, 3 months ago (2015-08-28 17:53:55 UTC) #4
Charlie Reis
+kenrb to CC, since I'm not entirely sure I understand this (especially in CreateRenderWidgetHostViewForRenderManager). A ...
5 years, 3 months ago (2015-08-28 18:58:26 UTC) #5
lfg
https://codereview.chromium.org/1306053008/diff/20001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1306053008/diff/20001/content/browser/frame_host/render_frame_host_impl.h#newcode84 content/browser/frame_host/render_frame_host_impl.h:84: CREATE_RF_HIDDEN = 1 << 2, On 2015/08/28 18:58:26, Charlie ...
5 years, 3 months ago (2015-08-28 21:18:40 UTC) #6
Charlie Reis
Thanks for explaining, but I'm still having a very hard time understanding how this works. ...
5 years, 3 months ago (2015-08-31 19:02:51 UTC) #7
lfg
Please take another look! https://codereview.chromium.org/1306053008/diff/40001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1306053008/diff/40001/content/browser/frame_host/render_frame_host_manager.cc#newcode1737 content/browser/frame_host/render_frame_host_manager.cc:1737: false); On 2015/08/31 19:02:51, Charlie ...
5 years, 3 months ago (2015-09-02 00:32:17 UTC) #8
lfg
On 2015/09/02 00:32:17, lfg wrote: > This can't be a subframe and have a proxy_routing_id. ...
5 years, 3 months ago (2015-09-02 16:19:12 UTC) #9
Charlie Reis
Thanks, this seems much clearer to me. LGTM apart from one question below. Also, I ...
5 years, 3 months ago (2015-09-02 20:13:08 UTC) #11
lfg
On 2015/09/02 20:13:08, Charlie Reis (OOO till 9-8) wrote: > https://codereview.chromium.org/1306053008/diff/100001/content/browser/frame_host/render_frame_host_manager.cc#newcode1768 > content/browser/frame_host/render_frame_host_manager.cc:1768: success = ...
5 years, 3 months ago (2015-09-02 21:56:37 UTC) #12
Charlie Reis
On 2015/09/02 21:56:37, lfg wrote: > On 2015/09/02 20:13:08, Charlie Reis (OOO till 9-8) wrote: ...
5 years, 3 months ago (2015-09-02 22:01:39 UTC) #13
lfg
+dmazzoni: Please review accessibility changes in render_frame_host_impl.cc
5 years, 3 months ago (2015-09-02 22:49:08 UTC) #15
nasko
https://codereview.chromium.org/1306053008/diff/140001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1306053008/diff/140001/content/browser/frame_host/render_frame_host_impl.cc#newcode1381 content/browser/frame_host/render_frame_host_impl.cc:1381: ->render_view_host_->GetView()); From Ken: I would suggest he use FTN->current_frame_host()->GetView() ...
5 years, 3 months ago (2015-09-02 22:54:55 UTC) #16
lfg
https://codereview.chromium.org/1306053008/diff/140001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1306053008/diff/140001/content/browser/frame_host/render_frame_host_impl.cc#newcode1381 content/browser/frame_host/render_frame_host_impl.cc:1381: ->render_view_host_->GetView()); On 2015/09/02 22:54:54, nasko (slow to review) wrote: ...
5 years, 3 months ago (2015-09-02 23:17:11 UTC) #17
nasko
https://codereview.chromium.org/1306053008/diff/140001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1306053008/diff/140001/content/browser/frame_host/render_frame_host_manager.cc#newcode1777 content/browser/frame_host/render_frame_host_manager.cc:1777: delegate_->CreateRenderWidgetHostViewForRenderManager(render_view_host); On 2015/09/02 23:17:11, lfg wrote: > On 2015/09/02 ...
5 years, 3 months ago (2015-09-02 23:36:06 UTC) #18
lfg
On 2015/09/02 23:36:06, nasko (slow to review) wrote: > Let's say we are on site ...
5 years, 3 months ago (2015-09-03 18:04:42 UTC) #19
lfg
On 2015/09/02 23:17:11, lfg wrote: > On 2015/09/02 22:54:54, nasko (slow to review) wrote: > ...
5 years, 3 months ago (2015-09-03 20:20:28 UTC) #20
dmazzoni
lgtm for accessibility changes in RFHI. I think I should refactor it as a follow-up. ...
5 years, 3 months ago (2015-09-11 18:13:22 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306053008/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306053008/160001
5 years, 3 months ago (2015-09-11 21:15:30 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago (2015-09-11 21:54:19 UTC) #25
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bede639284f3a6ffb058809f20b73de39ed13223 Cr-Commit-Position: refs/heads/master@{#348494}
5 years, 3 months ago (2015-09-11 21:55:11 UTC) #26
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:26:41 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bede639284f3a6ffb058809f20b73de39ed13223
Cr-Commit-Position: refs/heads/master@{#348494}

Powered by Google App Engine
This is Rietveld 408576698