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

Issue 103633002: Add RenderFrameHostDelegate and plumb it through all the necessary classes. (Closed)

Created:
7 years ago by jam
Modified:
7 years ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, fischman+watch_chromium.org, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Add RenderFrameHostDelegate and plumb it through all the necessary classes. This is an empty interface for now. I'm doing this separately in preparation for moving plugin creation from RenderView to RenderFrame. BUG=245126 R=creis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238709

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -42 lines) Patch
M content/browser/frame_host/frame_tree.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
A content/browser/frame_host/render_frame_host_delegate.h View 1 chunk +21 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_factory.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_factory.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 4 chunks +6 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M content/browser/frame_host/test_render_frame_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/test_render_frame_host.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 2 chunks +3 lines, -1 line 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 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_render_frame_host_factory.h View 2 chunks +1 line, -4 lines 0 comments Download
M content/test/test_render_frame_host_factory.cc View 1 chunk +2 lines, -1 line 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, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
7 years ago (2013-12-04 03:48:34 UTC) #1
Charlie Reis
Yep, I imagine we'll need this soon enough. LGTM.
7 years ago (2013-12-04 16:23:46 UTC) #2
nasko
Drive-by comment: Do we want RenderFrameHostDelegate to go all the way up to WebContentsImpl? I ...
7 years ago (2013-12-04 16:42:15 UTC) #3
jam
7 years ago (2013-12-04 17:35:06 UTC) #4
Message was sent while issue was closed.
On 2013/12/04 16:42:15, nasko wrote:
> Drive-by comment:
> Do we want RenderFrameHostDelegate to go all the way up to WebContentsImpl?

The reason I thought it should go all the way is because there are going to be a
lot of WebContentsObserver callbacks that are kicked off by RenderFrameHost.
Already it'll be cumbersome that each time we add/change a callback we'll have
to touch RFHImpl, RFHD and WCImpl.

> I think it will be better to delegate up to the FrameTree and then the
FrameTree
> can delegate to its embedder. This way anyone trying to display a page (for
> example interstitials)

Note, other than interstitials, the only way to display a page is through
WebContents. A long time ago we had lots of places in chrome that would use
RenderViewHost, but they were all switched to WC. If there was a way to change
interstitials to use WC swapping, that'd be even better but I don't know how
feasible it is. Regardless, I lean towards making interstitial code know about
RFHD rather than addding another 4 files to change each time we need to plumb
something from RFH to WC.

> doesn't need to know directly about RFH, just creates a
> FrameTree and Navigator. It will match today's world of RenderViewHost - you
> embed a page level concept, not the underpinnings of it.

Powered by Google App Engine
This is Rietveld 408576698