Index: content/common/navigation_params.h |
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h |
index 449003595cb6682ee8416e1f9acb23e6e82e1336..e1a30c7c29ad760bdd397d8aed5e206d49252eb7 100644 |
--- a/content/common/navigation_params.h |
+++ b/content/common/navigation_params.h |
@@ -156,7 +156,9 @@ struct CONTENT_EXPORT CommonNavigationParams { |
}; |
// Provided by the renderer ---------------------------------------------------- |
-// |
+ |
+const int kInvalidRenderNavigationId = -1; |
+ |
// This struct holds parameters sent by the renderer to the browser. It is only |
// used in PlzNavigate (since in the current architecture, the renderer does not |
// inform the browser of navigations until they commit). |
@@ -176,7 +178,8 @@ struct CONTENT_EXPORT BeginNavigationParams { |
RequestContextType request_context_type, |
blink::WebMixedContentContextType mixed_content_context_type, |
bool is_form_submission, |
- const base::Optional<url::Origin>& initiator_origin); |
+ const base::Optional<url::Origin>& initiator_origin, |
+ int renderer_navigation_id); |
BeginNavigationParams(const BeginNavigationParams& other); |
~BeginNavigationParams(); |
@@ -213,6 +216,12 @@ 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. |
+ // kInvalidRenderNavigationId means that this navigation wasn't initiated by |
+ // the renderer process through the BeginNavigation IPC. |
+ int renderer_navigation_id; |
}; |
// Provided by the browser ----------------------------------------------------- |