summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/public/browser')
-rw-r--r--chromium/content/public/browser/navigation_controller.cc1
-rw-r--r--chromium/content/public/browser/navigation_controller.h4
-rw-r--r--chromium/content/public/browser/navigation_handle.h4
3 files changed, 9 insertions, 0 deletions
diff --git a/chromium/content/public/browser/navigation_controller.cc b/chromium/content/public/browser/navigation_controller.cc
index 28abe1171a9..7b11ca8f266 100644
--- a/chromium/content/public/browser/navigation_controller.cc
+++ b/chromium/content/public/browser/navigation_controller.cc
@@ -25,6 +25,7 @@ NavigationController::LoadURLParams::LoadURLParams(const GURL& url)
should_clear_history_list(false),
started_from_context_menu(false),
navigation_ui_data(nullptr),
+ from_download_cross_origin_redirect(false),
was_activated(WasActivatedOption::kUnknown),
reload_type(ReloadType::NONE) {}
diff --git a/chromium/content/public/browser/navigation_controller.h b/chromium/content/public/browser/navigation_controller.h
index 949c91dd136..f8929f2945d 100644
--- a/chromium/content/public/browser/navigation_controller.h
+++ b/chromium/content/public/browser/navigation_controller.h
@@ -201,6 +201,10 @@ class NavigationController {
// ContentBrowserClient::GetNavigationUIData.
std::unique_ptr<NavigationUIData> navigation_ui_data;
+ // Whether this navigation was triggered by a x-origin redirect following a
+ // prior (most likely <a download>) download attempt.
+ bool from_download_cross_origin_redirect;
+
// Time at which the input leading to this navigation occurred. This field
// is set for links clicked by the user; the embedder is recommended to set
// it for navigations it initiates.
diff --git a/chromium/content/public/browser/navigation_handle.h b/chromium/content/public/browser/navigation_handle.h
index d20c8207f4a..819892174f7 100644
--- a/chromium/content/public/browser/navigation_handle.h
+++ b/chromium/content/public/browser/navigation_handle.h
@@ -317,6 +317,10 @@ class CONTENT_EXPORT NavigationHandle {
// Returns whether this navigation is currently deferred.
virtual bool IsDeferredForTesting() = 0;
+ // Whether this navigation was triggered by a x-origin redirect following a
+ // prior (most likely <a download>) download attempt.
+ virtual bool FromDownloadCrossOriginRedirect() = 0;
+
// The NavigationData that the embedder returned from
// ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
// be a clone of the NavigationData.