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

Unified Diff: content/common/navigation_params.h

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.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 105130740e309c150cf97dfef2ef918ad4a14e2d..c635a2c1e1d4e8a6da4639aaf3ee59c2596cf850 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -142,7 +142,8 @@ struct CONTENT_EXPORT 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);
BeginNavigationParams(const BeginNavigationParams& other);
~BeginNavigationParams();
@@ -176,6 +177,11 @@ struct CONTENT_EXPORT BeginNavigationParams {
// If the transition type is a client side redirect, then this holds the URL
// of the page that had the client side redirect.
GURL client_side_redirect_url;
+
+ // ID provided by the renderer to identify this navigation. It will be sent
+ // back to the renderer if the browser decides to drop the navigation.
+ // -1 is this navigation wasn't renderer-initiated.
nasko 2017/03/16 21:23:14 nit: "Value of -1 means this ..." Why not define
clamy 2017/03/17 15:19:11 Done.
+ int renderer_navigation_id;
};
// Provided by the browser -----------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698