Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index d42c1c1062aa9bce26012e5ef0a3a56f74af2ee8..ab9228e2f019e733145fa9e6cdd174114adc10aa 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -190,6 +190,18 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
// menus, and other times when the renderer initiates creating an object. |
virtual void Init(); |
+ // Initializes a RenderWidgetHost that is attached to a RenderFrameHost. |
+ void InitForFrame(); |
+ |
+ // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in |
+ // which case it does not do self-deletion. |
+ void set_owned_by_render_frame_host(bool owned_by_rfh) { |
+ owned_by_render_frame_host_ = owned_by_rfh; |
+ } |
+ |
+ // Called by RenderFrameHost before destroying this object. |
+ void Cleanup(); |
+ |
// Tells the renderer to die and then calls Destroy(). |
virtual void Shutdown(); |
@@ -823,6 +835,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
PendingSnapshotMap pending_browser_snapshots_; |
+ // Indicates whether a RenderFramehost has ownership, in which case this |
+ // object does not self destroy. |
+ bool owned_by_render_frame_host_; |
+ |
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |