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

Unified Diff: content/common/navigation_params.cc

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Rebase Created 3 years, 9 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 394e8f364286bf955accf45f8275781deba78d53..9f4f0f67722e473fb00c1abb9aa8d18e9a560398 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -97,8 +97,8 @@ BeginNavigationParams::BeginNavigationParams()
has_user_gesture(false),
skip_service_worker(false),
request_context_type(REQUEST_CONTEXT_TYPE_LOCATION),
- mixed_content_context_type(blink::WebMixedContentContextType::Blockable) {
-}
+ mixed_content_context_type(blink::WebMixedContentContextType::Blockable),
+ renderer_navigation_id(kInvalidRenderNavigationId) {}
BeginNavigationParams::BeginNavigationParams(
std::string headers,
@@ -107,14 +107,16 @@ BeginNavigationParams::BeginNavigationParams(
bool skip_service_worker,
RequestContextType request_context_type,
blink::WebMixedContentContextType mixed_content_context_type,
- const base::Optional<url::Origin>& initiator_origin)
+ const base::Optional<url::Origin>& initiator_origin,
+ int renderer_navigation_id)
: headers(headers),
load_flags(load_flags),
has_user_gesture(has_user_gesture),
skip_service_worker(skip_service_worker),
request_context_type(request_context_type),
mixed_content_context_type(mixed_content_context_type),
- initiator_origin(initiator_origin) {}
+ initiator_origin(initiator_origin),
+ renderer_navigation_id(renderer_navigation_id) {}
BeginNavigationParams::BeginNavigationParams(
const BeginNavigationParams& other) = default;

Powered by Google App Engine
This is Rietveld 408576698