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

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

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a unit test for the reload case Created 6 years, 4 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_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index 48a5f24b6f4e79f999567b0770c82fd6565c22ae..5e6a86b9bd237cc8cdba1a0c0c6615bc9af04428 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -18,6 +18,7 @@
#include "content/public/common/referrer.h"
struct FrameHostMsg_BeginNavigation_Params;
+struct FrameMsg_CommitNavigation_Params;
struct FrameMsg_Navigate_Params;
namespace content {
@@ -316,8 +317,9 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver {
// PlzNavigate: sends a RequestNavigation IPC to the renderer to ask it to
// navigate. If no live renderer is present, then the navigation request will
// be sent directly to the ResourceDispatcherHost.
- bool RequestNavigation(const NavigationEntryImpl& entry,
- const FrameMsg_Navigate_Params& navigate_params);
+ bool RequestNavigation(
+ scoped_ptr<FrameMsg_CommitNavigation_Params> commit_navigation_params,
(Do not use) nasko 2014/08/28 16:39:09 Why do we need to have commit parameters at the Re
clamy 2014/09/02 18:25:19 Because they depend on information stored in the N
nasko 2014/09/03 16:30:26 Yes, I agree that we shouldn't depend on Navigatio
clamy 2014/09/03 17:15:15 I think that would work. This is essentially what
+ const FrameMsg_Navigate_Params& navigate_params);
// PlzNavigate: Used to start a navigation. OnBeginNavigation is called
// directly by RequestNavigation when there is no live renderer. Otherwise, it
@@ -535,6 +537,10 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver {
// it commits.
scoped_ptr<NavigationRequest> navigation_request_;
+ // PlzNaigate: Holds info that should be sent to the renderer when the
+ // navigation is about to commit.
+ scoped_ptr<FrameMsg_CommitNavigation_Params> commit_navigation_params_;
+
base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);

Powered by Google App Engine
This is Rietveld 408576698