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

Unified Diff: content/common/navigation_params.cc

Issue 1182453002: PlzNavigate: support for should_replace_current_entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 6 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/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index 8b70c8ffb9718acfc22352f71d3643591cad57c7..a6c9a1c04fd40d1ab87bd21b08ecd3ec1863d197 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -12,6 +12,7 @@ CommonNavigationParams::CommonNavigationParams()
: transition(ui::PAGE_TRANSITION_LINK),
navigation_type(FrameMsg_Navigate_Type::NORMAL),
allow_download(true),
+ should_replace_current_entry(false),
report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT) {
}
@@ -21,6 +22,7 @@ CommonNavigationParams::CommonNavigationParams(
ui::PageTransition transition,
FrameMsg_Navigate_Type::Value navigation_type,
bool allow_download,
+ bool should_replace_current_entry,
base::TimeTicks ui_timestamp,
FrameMsg_UILoadMetricsReportType::Value report_type,
const GURL& base_url_for_data_url,
@@ -30,6 +32,7 @@ CommonNavigationParams::CommonNavigationParams(
transition(transition),
navigation_type(navigation_type),
allow_download(allow_download),
+ should_replace_current_entry(should_replace_current_entry),
ui_timestamp(ui_timestamp),
report_type(report_type),
base_url_for_data_url(base_url_for_data_url),
@@ -55,7 +58,6 @@ BeginNavigationParams::BeginNavigationParams(std::string method,
StartNavigationParams::StartNavigationParams()
: is_post(false),
- should_replace_current_entry(false),
transferred_request_child_id(-1),
transferred_request_request_id(-1) {
}
@@ -64,13 +66,11 @@ StartNavigationParams::StartNavigationParams(
bool is_post,
const std::string& extra_headers,
const std::vector<unsigned char>& browser_initiated_post_data,
- bool should_replace_current_entry,
int transferred_request_child_id,
int transferred_request_request_id)
: is_post(is_post),
extra_headers(extra_headers),
browser_initiated_post_data(browser_initiated_post_data),
- should_replace_current_entry(should_replace_current_entry),
transferred_request_child_id(transferred_request_child_id),
transferred_request_request_id(transferred_request_request_id) {
}

Powered by Google App Engine
This is Rietveld 408576698