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

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

Issue 2472253002: Fix navigation requests starting too early and not getting associated with the <webview>. (Closed)
Patch Set: nits Created 4 years, 1 month 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 e3972d6f2c01da04b1fce6300f320978b3e61a12..0dc48ee6cebb258da4439cadb3db13f5cbd61318 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -593,7 +593,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
FrameTreeNode* frame_tree_node,
int32_t routing_id,
int32_t widget_routing_id,
- bool hidden);
+ bool hidden,
+ bool renderer_initiated_creation);
private:
friend class TestRenderFrameHost;
@@ -1040,6 +1041,15 @@ class CONTENT_EXPORT RenderFrameHostImpl
mojo::Binding<mojom::FrameHost> frame_host_binding_;
mojom::FramePtr frame_;
+ // If this is true then this object was created in response to a renderer
+ // initiated request. Init() will be called, and until then navigation
+ // requests should be queued.
+ bool waiting_for_init_;
+
+ typedef std::pair<CommonNavigationParams, BeginNavigationParams>
+ PendingNavigation;
+ std::unique_ptr<PendingNavigation> pendinging_navigate_;
+
// Callback for responding when
// |FrameHostMsg_TextSurroundingSelectionResponse| message comes.
TextSurroundingSelectionCallback text_surrounding_selection_callback_;
« 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