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

Issue 270883003: Decouple RVH creation from CrossProcessFrameConnector. (Closed)

Created:
6 years, 7 months ago by nasko
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Decouple RVH creation from CrossProcessFrameConnector. The RenderViewHost creation today takes a CrossProcessFrameConnector pointer, which it uses to decide whether to create a top-level or child frame view. Replace this with a boolean and associate the CrossProcessFrameConnector with the view at a later point in time. BUG=357747 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271461

Patch Set 1 #

Total comments: 1

Patch Set 2 : Still no worky, very spammy. #

Patch Set 3 : Yay, it works! #

Patch Set 4 : Clean it up. #

Patch Set 5 : Some more cleanup and fixes. #

Total comments: 4

Patch Set 6 : Fixes based on Nick's review. #

Total comments: 12

Patch Set 7 : Fixing based on Charlie's review. #

Total comments: 2

Patch Set 8 : Add TODO to move CPFC ownership from RFHM to RFPH. #

Patch Set 9 : Rebase on ToT. #

Patch Set 10 : Fix comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -31 lines) Patch
M content/browser/frame_host/cross_process_frame_connector.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.cc View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -15 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 chunks +27 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 2 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
kenrb
https://codereview.chromium.org/270883003/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/270883003/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode1140 content/browser/frame_host/render_frame_host_manager.cc:1140: old_render_frame_host->render_view_host()->GetView(); Which RenderViewHost does old_render_frame_host->render_view_host() return?
6 years, 7 months ago (2014-05-08 19:56:14 UTC) #1
nasko
Nick or Ken, Can you review this CL for me? Once it looks fine, feel ...
6 years, 7 months ago (2014-05-09 22:33:02 UTC) #2
ncarter (slow)
lgtm with one suggestion and one nit https://codereview.chromium.org/270883003/diff/80001/content/browser/frame_host/cross_process_frame_connector.cc File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/270883003/diff/80001/content/browser/frame_host/cross_process_frame_connector.cc#newcode60 content/browser/frame_host/cross_process_frame_connector.cc:60: OnInitializeChildFrame(child_frame_rect_, device_scale_factor_); ...
6 years, 7 months ago (2014-05-10 00:32:42 UTC) #3
nasko
Fixes based on Nick's review. Charlie, can you do an OWNERS review for content/? Thanks! ...
6 years, 7 months ago (2014-05-16 16:17:30 UTC) #4
Charlie Reis
LGTM with nits. I think you mentioned we don't have any tests yet that could ...
6 years, 7 months ago (2014-05-16 17:04:06 UTC) #5
nasko
I've added an item line for writing pixel tests in our TODO spreadsheet, as I ...
6 years, 7 months ago (2014-05-16 17:26:02 UTC) #6
kenrb
I'm fine with this, just a question. https://codereview.chromium.org/270883003/diff/120001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/270883003/diff/120001/content/browser/frame_host/render_frame_host_manager.cc#newcode1149 content/browser/frame_host/render_frame_host_manager.cc:1149: // If ...
6 years, 7 months ago (2014-05-16 17:44:54 UTC) #7
nasko
https://codereview.chromium.org/270883003/diff/120001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/270883003/diff/120001/content/browser/frame_host/render_frame_host_manager.cc#newcode1149 content/browser/frame_host/render_frame_host_manager.cc:1149: // If this is a subframe, it should have ...
6 years, 7 months ago (2014-05-16 18:24:17 UTC) #8
Charlie Reis
Minor nit: Is there a reasonable bug number to list in the CL description? (Perhaps ...
6 years, 7 months ago (2014-05-16 18:38:56 UTC) #9
nasko
On 2014/05/16 18:38:56, Charlie Reis(OOO as of May 17) wrote: > Minor nit: Is there ...
6 years, 7 months ago (2014-05-16 18:47:52 UTC) #10
kenrb
lgtm On 2014/05/16 18:24:17, nasko wrote: > It will still be 1:1 with RenderWidgetHostViewChildFrame though, ...
6 years, 7 months ago (2014-05-16 19:01:00 UTC) #11
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 7 months ago (2014-05-16 19:09:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/270883003/140001
6 years, 7 months ago (2014-05-16 19:10:44 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 05:40:26 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 07:03:40 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/154768)
6 years, 7 months ago (2014-05-17 07:03:40 UTC) #16
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 7 months ago (2014-05-17 07:48:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/270883003/140001
6 years, 7 months ago (2014-05-17 07:49:56 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 09:04:18 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 09:55:38 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/154790)
6 years, 7 months ago (2014-05-17 09:55:38 UTC) #21
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 7 months ago (2014-05-18 22:08:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/270883003/140001
6 years, 7 months ago (2014-05-18 22:08:56 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-18 23:53:18 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 01:12:23 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/154868)
6 years, 7 months ago (2014-05-19 01:12:24 UTC) #26
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 7 months ago (2014-05-19 14:18:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/270883003/140001
6 years, 7 months ago (2014-05-19 14:18:52 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 14:19:49 UTC) #29
commit-bot: I haz the power
Failed to apply patch for content/browser/frame_host/render_frame_host_manager.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-19 14:19:50 UTC) #30
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 7 months ago (2014-05-19 15:29:34 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/270883003/180001
6 years, 7 months ago (2014-05-19 15:30:06 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 18:59:57 UTC) #33
commit-bot: I haz the power
Change committed as 271461
6 years, 7 months ago (2014-05-19 20:16:50 UTC) #34
boliu
https://codereview.chromium.org/270883003/diff/180001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/270883003/diff/180001/content/browser/web_contents/web_contents_impl.cc#newcode3835 content/browser/web_contents/web_contents_impl.cc:3835: NULL); The android_webview failure is caused by this line. ...
6 years, 7 months ago (2014-05-20 01:49:56 UTC) #35
nasko
6 years, 7 months ago (2014-05-20 17:30:22 UTC) #36
Message was sent while issue was closed.
I'll fix this in https://codereview.chromium.org/299703002.

https://codereview.chromium.org/270883003/diff/180001/content/browser/web_con...
File content/browser/web_contents/web_contents_impl.cc (right):

https://codereview.chromium.org/270883003/diff/180001/content/browser/web_con...
content/browser/web_contents/web_contents_impl.cc:3835: NULL);
On 2014/05/20 01:49:57, boliu wrote:
> The android_webview failure is caused by this line. The last param should be
> updated to true.

Thanks for catching this!

Powered by Google App Engine
This is Rietveld 408576698