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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 103633002: Add RenderFrameHostDelegate and plumb it through all the necessary classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
===================================================================
--- content/browser/frame_host/render_frame_host_impl.h (revision 238504)
+++ content/browser/frame_host/render_frame_host_impl.h (working copy)
@@ -16,6 +16,7 @@
namespace content {
class FrameTree;
+class RenderFrameHostDelegate;
class RenderProcessHost;
class RenderViewHostImpl;
@@ -39,9 +40,8 @@
int64 frame_id,
const std::string& frame_name);
- RenderViewHostImpl* render_view_host() {
- return render_view_host_;
- }
+ RenderViewHostImpl* render_view_host() { return render_view_host_; }
+ RenderFrameHostDelegate* delegate() { return delegate_; }
protected:
friend class RenderFrameHostFactory;
@@ -50,6 +50,7 @@
// should be the abstraction needed here, but we need RenderViewHost to pass
// into WebContentsObserver::FrameDetached for now.
RenderFrameHostImpl(RenderViewHostImpl* render_view_host,
+ RenderFrameHostDelegate* delegate,
FrameTree* frame_tree,
int routing_id,
bool is_swapped_out);
@@ -67,6 +68,8 @@
// TODO(nasko): This should be removed and replaced by RenderProcessHost.
RenderViewHostImpl* render_view_host_; // Not owned.
+ RenderFrameHostDelegate* delegate_;
+
// Reference to the whole frame tree that this RenderFrameHost belongs too.
// Allows this RenderFrameHost to add and remove nodes in response to
// messages from the renderer requesting DOM manipulation.
« no previous file with comments | « content/browser/frame_host/render_frame_host_factory.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698