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

Unified Diff: content/common/resource_request.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Created 4 years, 6 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/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index dfd196f280ce4626819580d8206fc20b830e5f2e..6845adbbcc8491c0d7149c6a797381d3bf940122 100644
--- a/content/common/resource_request.h
+++ b/content/common/resource_request.h
@@ -18,6 +18,7 @@
#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_type.h"
#include "net/base/request_priority.h"
+#include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "ui/base/page_transition_types.h"
@@ -170,6 +171,10 @@ struct CONTENT_EXPORT ResourceRequest {
// access to the body of the response that has already been fetched by the
// browser.
GURL resource_body_stream_url;
+
+ // The insecure request policy of the context which triggered this request.
+ blink::WebInsecureRequestPolicy insecure_request_policy =
+ blink::kLeaveInsecureRequestsAlone;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698