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

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

Issue 559613002: PlzNavigate: Implement RequestNavigation on the renderer side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commit-navigation-renderer
Patch Set: Created 6 years, 2 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 63f96b3392dffd134660d3b577326c1e26d962df..437f400ef4f57bf6abfa1bfaff49ab706a614a7b 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -57,8 +57,8 @@ class RenderWidgetHostImpl;
class StreamHandle;
class TimeoutMonitor;
struct CommitNavigationParams;
-struct ContextMenuParams;
struct CommonNavigationParams;
+struct ContextMenuParams;
struct GlobalRequestID;
struct Referrer;
struct RequestNavigationParams;
@@ -347,6 +347,13 @@ class CONTENT_EXPORT RenderFrameHostImpl
void DidCancelPopupMenu();
#endif
+ // PlzNavigate
+ // Tells the renderer that there is a navigation request. The renderer should
+ // execute its beforeunload event and confirm the navigation by sending a
+ // FrameHostMsg_BeginNavigation to the browser.
+ void RequestNavigation(const CommonNavigationParams& common_params,
+ const RequestNavigationParams& request_params);
+
// PlzNavigate: Indicates that a navigation is ready to commit and can be
// handled by this RenderFrame.
void CommitNavigation(ResourceResponse* response,

Powered by Google App Engine
This is Rietveld 408576698