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

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

Issue 979443002: PlzNavigate: send history params at commit time to the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 5 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56e993d7af3bbbee19f9378eecdaea72bb20ec82..a7a760a28c28c7069cb078775a4b757c00263d48 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -61,7 +61,8 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
FrameTreeNode* frame_tree_node,
const NavigationEntryImpl& entry,
FrameMsg_Navigate_Type::Value navigation_type,
- base::TimeTicks navigation_start);
+ base::TimeTicks navigation_start,
+ const HistoryNavigationParams& history_params);
// Creates a request for a renderer-intiated navigation.
// Note: |body| is sent to the IO thread when calling BeginNavigation, and
@@ -70,7 +71,9 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
FrameTreeNode* frame_tree_node,
const CommonNavigationParams& common_params,
const BeginNavigationParams& begin_params,
- scoped_refptr<ResourceRequestBody> body);
+ scoped_refptr<ResourceRequestBody> body,
+ int current_history_list_offset,
+ int current_history_list_length);
~NavigationRequest() override;
@@ -86,6 +89,10 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
const CommitNavigationParams& commit_params() const { return commit_params_; }
+ const HistoryNavigationParams& history_params() const {
+ return history_params_;
+ }
+
NavigationURLLoader* loader_for_testing() const { return loader_.get(); }
NavigationState state() const { return state_; }
@@ -118,6 +125,7 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
const CommonNavigationParams& common_params,
const BeginNavigationParams& begin_params,
const CommitNavigationParams& commit_params,
+ const HistoryNavigationParams& history_params,
scoped_refptr<ResourceRequestBody> body,
bool browser_initiated,
const NavigationEntryImpl* navitation_entry);
@@ -141,6 +149,7 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
CommonNavigationParams common_params_;
const BeginNavigationParams begin_params_;
const CommitNavigationParams commit_params_;
+ const HistoryNavigationParams history_params_;
const bool browser_initiated_;
NavigationState state_;
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698