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

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

Issue 782093002: Ensure that before creating proxy of site A, RVH of site A is initialized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync again Created 5 years, 11 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_proxy_host.h
diff --git a/content/browser/frame_host/render_frame_proxy_host.h b/content/browser/frame_host/render_frame_proxy_host.h
index ed3235ca98bf39c70a5ebb4571efd99e42452b8a..94664da047a65b57347ac879126c763c71830faf 100644
--- a/content/browser/frame_host/render_frame_proxy_host.h
+++ b/content/browser/frame_host/render_frame_proxy_host.h
@@ -106,6 +106,13 @@ class RenderFrameProxyHost
// action in another renderer process.
void DisownOpener();
+ void set_render_frame_proxy_created(bool created) {
+ render_frame_proxy_created_ = created;
+ }
+
+ // Returns if the renderer/ side counterpart for this proxy is alive.
+ bool IsRenderFrameProxyLive();
+
private:
// IPC Message handlers.
void OnOpenURL(const FrameHostMsg_OpenURL_Params& params);
@@ -119,6 +126,9 @@ class RenderFrameProxyHost
// The node in the frame tree where this proxy is located.
FrameTreeNode* frame_tree_node_;
+ // True if we have a live RenderFrameProxy for this host.
+ bool render_frame_proxy_created_;
+
// When a RenderFrameHost is in a different process from its parent in the
// frame tree, this class connects its associated RenderWidgetHostView
// to this RenderFrameProxyHost, which corresponds to the same frame in the

Powered by Google App Engine
This is Rietveld 408576698