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

Unified Diff: content/common/navigation_params.h

Issue 2689653003: PlzNavigate: Enforce 'form-action' CSP on the browser-side. (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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index c23cada787c82d75e9f1d9837b14ceb52fcb81ac..449003595cb6682ee8416e1f9acb23e6e82e1336 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -175,6 +175,7 @@ struct CONTENT_EXPORT BeginNavigationParams {
bool skip_service_worker,
RequestContextType request_context_type,
blink::WebMixedContentContextType mixed_content_context_type,
+ bool is_form_submission,
const base::Optional<url::Origin>& initiator_origin);
BeginNavigationParams(const BeginNavigationParams& other);
~BeginNavigationParams();
@@ -197,6 +198,9 @@ struct CONTENT_EXPORT BeginNavigationParams {
// The mixed content context type for potential mixed content checks.
blink::WebMixedContentContextType mixed_content_context_type;
+ // Whether or not the navigation has been initiated by a form submission.
+ bool is_form_submission;
+
// See WebSearchableFormData for a description of these.
GURL searchable_form_url;
std::string searchable_form_encoding;
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698