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

Issue 16032007: Create RenderFrame/RenderFrameHost for the main frame of a page. (Closed)

Created:
7 years, 6 months ago by nasko
Modified:
7 years, 6 months ago
Reviewers:
palmer, Charlie Reis, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-site-isolation-reviews_chromium.org, jam
Visibility:
Public.

Description

Create RenderFrame/RenderFrameHost for the main frame of a page. This CL is the first in a series that will move frame specific functionality from RenderView/RenderViewHost to RenderFrame/RenderFrameHost. In this change, I'm only creating the objects for the top level frame and keeping them as members of RenderView/RenderViewHost for now. BUG=245126 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203500

Patch Set 1 #

Patch Set 2 : Clean up and fixing content_unittests. #

Patch Set 3 : More cleanup, fixes. #

Patch Set 4 : Added basic renderer and browser test for existence. #

Total comments: 26

Patch Set 5 : Fixes based on initial feedback from Charlie. #

Total comments: 14

Patch Set 6 : A bit more cleanup. #

Total comments: 16

Patch Set 7 : Adding short description on RenderFrame. #

Patch Set 8 : Removing routing ID expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -26 lines) Patch
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
A content/browser/renderer_host/render_frame_host_impl.h View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A content/browser/renderer_host/render_frame_host_impl.cc View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 6 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 5 chunks +11 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/web_contents/render_view_host_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager_unittest.cc View 1 2 7 chunks +9 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A content/public/browser/render_frame_host.h View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/web_contents.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A content/public/renderer/render_frame.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
A content/renderer/render_frame_impl.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A content/renderer/render_frame_impl.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 6 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl_params.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl_params.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/test_render_view_host_factory.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_render_view_host_factory.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/test/test_web_contents.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
nasko
Charlie, Can you review this CL for me? It is the "simple" adding of RenderFrame/RenderFrameHost ...
7 years, 6 months ago (2013-05-30 00:12:51 UTC) #1
Charlie Reis
I'm not sure I understand yet why we need to pass the main frame routing ...
7 years, 6 months ago (2013-05-30 00:41:53 UTC) #2
nasko
The reason we need to pass in the main frame routing id is window.open. In ...
7 years, 6 months ago (2013-05-30 17:07:03 UTC) #3
Charlie Reis
On 2013/05/30 17:07:03, nasko wrote: > The reason we need to pass in the main ...
7 years, 6 months ago (2013-05-30 18:26:59 UTC) #4
nasko
Clean up done. https://codereview.chromium.org/16032007/diff/15001/content/browser/renderer_host/render_frame_host_impl.h File content/browser/renderer_host/render_frame_host_impl.h (right): https://codereview.chromium.org/16032007/diff/15001/content/browser/renderer_host/render_frame_host_impl.h#newcode41 content/browser/renderer_host/render_frame_host_impl.h:41: bool is_swapped_out_; On 2013/05/30 18:26:59, creis ...
7 years, 6 months ago (2013-05-30 19:03:47 UTC) #5
Charlie Reis
LGTM. Would be good to have John take a look as well.
7 years, 6 months ago (2013-05-30 20:04:23 UTC) #6
nasko
OWNERS reviews: jam@ - general content review palmer@ - IPC review Thanks.
7 years, 6 months ago (2013-05-30 20:07:58 UTC) #7
palmer
https://codereview.chromium.org/16032007/diff/38001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/16032007/diff/38001/content/common/view_messages.h#newcode659 content/common/view_messages.h:659: IPC_STRUCT_MEMBER(int32, main_frame_routing_id) Looking around, seems like this is declared ...
7 years, 6 months ago (2013-05-30 20:58:39 UTC) #8
nasko
https://codereview.chromium.org/16032007/diff/38001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/16032007/diff/38001/content/common/view_messages.h#newcode659 content/common/view_messages.h:659: IPC_STRUCT_MEMBER(int32, main_frame_routing_id) On 2013/05/30 20:58:39, Chromium Palmer wrote: > ...
7 years, 6 months ago (2013-05-30 21:05:42 UTC) #9
palmer
LGTM, and I filed https://code.google.com/p/chromium/issues/detail?id=245721
7 years, 6 months ago (2013-05-31 16:56:09 UTC) #10
jam
https://codereview.chromium.org/16032007/diff/38001/content/browser/renderer_host/render_view_host_browsertest.cc File content/browser/renderer_host/render_view_host_browsertest.cc (right): https://codereview.chromium.org/16032007/diff/38001/content/browser/renderer_host/render_view_host_browsertest.cc#newcode110 content/browser/renderer_host/render_view_host_browsertest.cc:110: EXPECT_EQ(rvh->GetRoutingID() + 1, nit: ditto from my comment about ...
7 years, 6 months ago (2013-05-31 17:40:04 UTC) #11
nasko
https://codereview.chromium.org/16032007/diff/38001/content/browser/renderer_host/render_view_host_browsertest.cc File content/browser/renderer_host/render_view_host_browsertest.cc (right): https://codereview.chromium.org/16032007/diff/38001/content/browser/renderer_host/render_view_host_browsertest.cc#newcode110 content/browser/renderer_host/render_view_host_browsertest.cc:110: EXPECT_EQ(rvh->GetRoutingID() + 1, On 2013/05/31 17:40:04, jam wrote: > ...
7 years, 6 months ago (2013-05-31 17:58:30 UTC) #12
jam
https://codereview.chromium.org/16032007/diff/38001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/16032007/diff/38001/content/renderer/render_view_browsertest.cc#newcode1862 content/renderer/render_view_browsertest.cc:1862: EXPECT_EQ(view()->routing_id() + 1, view()->main_render_frame_->routing_id()); On 2013/05/31 17:58:30, nasko wrote: ...
7 years, 6 months ago (2013-05-31 18:02:15 UTC) #13
nasko
https://codereview.chromium.org/16032007/diff/38001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/16032007/diff/38001/content/renderer/render_view_browsertest.cc#newcode1862 content/renderer/render_view_browsertest.cc:1862: EXPECT_EQ(view()->routing_id() + 1, view()->main_render_frame_->routing_id()); On 2013/05/31 18:02:15, jam wrote: ...
7 years, 6 months ago (2013-05-31 18:13:38 UTC) #14
jam
lgtm
7 years, 6 months ago (2013-05-31 19:36:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/16032007/57001
7 years, 6 months ago (2013-05-31 19:45:22 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-05-31 22:43:07 UTC) #17
Message was sent while issue was closed.
Change committed as 203500

Powered by Google App Engine
This is Rietveld 408576698