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

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

Issue 2697753002: PlzNavigate: Fix dynamic iframe back forward layout test failure (Closed)
Patch Set: Refactor Created 3 years, 10 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/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index 24980b97da4696d2062a99ef41757bc9237454ce..b3cd5d90a58cc327215adfef21ce6f328c6d7e11 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -96,6 +96,23 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
int current_history_list_offset,
int current_history_list_length);
+ // Creates a request for a renderer-intiated history navigation. Currently
+ // only invoked for history navigations for child frames.
+ // |is_history_navigation_in_new_child| should always be true.
+ static std::unique_ptr<NavigationRequest>
+ CreateRendererInitiatedHistoryNavigation(
clamy 2017/02/15 16:27:55 I don't think creating a new way to create a Navig
ananta 2017/02/15 23:45:02 Done. I added a is_user_action parameter to this f
+ FrameTreeNode* frame_tree_node,
+ const GURL& dest_url,
+ const Referrer& dest_referrer,
+ const FrameNavigationEntry& frame_entry,
+ const NavigationEntryImpl& entry,
+ FrameMsg_Navigate_Type::Value navigation_type,
+ PreviewsState previews_state,
+ bool is_history_navigation_in_new_child,
+ bool has_user_gesture,
+ const base::TimeTicks& navigation_start,
+ NavigationControllerImpl* controller);
+
~NavigationRequest() override;
// Called on the UI thread by the Navigator to start the navigation.
@@ -167,6 +184,21 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
}
private:
+ // Helper function to create a navigation request.
+ static std::unique_ptr<NavigationRequest> CreateNavigationHelper(
+ FrameTreeNode* frame_tree_node,
+ const GURL& dest_url,
+ const Referrer& dest_referrer,
+ const FrameNavigationEntry& frame_entry,
+ const NavigationEntryImpl& entry,
+ FrameMsg_Navigate_Type::Value navigation_type,
+ PreviewsState previews_state,
+ bool is_history_navigation_in_new_child,
+ bool has_user_gesture,
+ bool browser_initiated,
+ const base::TimeTicks& navigation_start,
+ NavigationControllerImpl* controller);
+
NavigationRequest(FrameTreeNode* frame_tree_node,
const CommonNavigationParams& common_params,
const BeginNavigationParams& begin_params,
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | content/browser/frame_host/navigation_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698