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

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

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 7ce2fd014f2194966bc6f38413dcc6a93d17f3dc..17c9da2f576a62c41afd30dcd0c657d50602bfbf 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -51,6 +51,7 @@ class RenderFrameHostDelegate;
class RenderFrameProxyHost;
class RenderProcessHost;
class RenderViewHostImpl;
+class RenderWidgetHostDelegate;
class RenderWidgetHostImpl;
struct ContextMenuParams;
struct GlobalRequestID;
@@ -128,6 +129,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
RenderViewHostImpl* render_view_host() { return render_view_host_; }
RenderFrameHostDelegate* delegate() { return delegate_; }
FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
+
+ void CreateRenderWidgetHost(RenderWidgetHostDelegate* delegate,
Charlie Reis 2014/10/01 17:01:08 Please add a comment saying when this should be ca
kenrb 2014/10/01 19:27:51 Done.
+ bool hidden);
// TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in
Charlie Reis 2014/10/01 17:01:08 Can we update this comment now?
kenrb 2014/10/01 19:27:51 Done.
// the future, so update this accessor to return the right pointer.
RenderWidgetHostImpl* GetRenderWidgetHost();
@@ -438,6 +442,12 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Map from notification_id to a callback to cancel them.
std::map<int, base::Closure> cancel_notification_callbacks_;
+ // RenderFrameHosts that need management of the rendering and input events
+ // for their frame subtrees require RenderWidgetHosts. This typically
+ // means main frames and frames that are rendered in different processes from
Charlie Reis 2014/10/01 17:01:08 We don't use this for the main frame, do we? Aren
kenrb 2014/10/01 19:27:51 We will, but not yet. I have changed it accordingl
+ // their parent frames.
+ scoped_ptr<RenderWidgetHostImpl> render_widget_host_impl_;
nasko 2014/10/01 16:37:14 nit: it might be shorter to just drop the "impl_"
kenrb 2014/10/01 19:27:51 Ok.
+
int routing_id_;
bool is_swapped_out_;
bool renderer_initialized_;

Powered by Google App Engine
This is Rietveld 408576698