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

Unified Diff: content/common/navigation_params.cc

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 | « content/common/navigation_params.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index 3213337f73fa563de524f0ee15d11f619dc800bd..1c9da096a042b0d07155bb37a9e78b35fa41e735 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -58,14 +58,38 @@ CommitNavigationParams::CommitNavigationParams()
: is_overriding_user_agent(false) {
}
-CommitNavigationParams::CommitNavigationParams(const PageState& page_state,
- bool is_overriding_user_agent,
+CommitNavigationParams::CommitNavigationParams(bool is_overriding_user_agent,
base::TimeTicks navigation_start)
- : page_state(page_state),
- is_overriding_user_agent(is_overriding_user_agent),
+ : is_overriding_user_agent(is_overriding_user_agent),
browser_navigation_start(navigation_start) {
}
CommitNavigationParams::~CommitNavigationParams() {}
+HistoryNavigationParams::HistoryNavigationParams()
+ : page_id(-1),
+ pending_history_list_offset(-1),
+ current_history_list_offset(-1),
+ current_history_list_length(-1),
+ should_clear_history_list(false) {
+}
+
+HistoryNavigationParams::HistoryNavigationParams(
+ const PageState& page_state,
+ int32 page_id,
+ int pending_history_list_offset,
+ int current_history_list_offset,
+ int current_history_list_length,
+ bool should_clear_history_list)
+ : page_state(page_state),
+ page_id(page_id),
+ pending_history_list_offset(pending_history_list_offset),
+ current_history_list_offset(current_history_list_offset),
+ current_history_list_length(current_history_list_length),
+ should_clear_history_list(should_clear_history_list) {
+}
+
+HistoryNavigationParams::~HistoryNavigationParams() {
+}
+
} // namespace content
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698