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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.h

Issue 2445993006: [WIP] Upgrade-insecure-request: upgrade insecurely-redirected requests.
Patch Set: bugfix Created 4 years, 2 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: third_party/WebKit/Source/platform/network/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index c3959119aad726c646e85b8c183e82527554856f..9287da2b3044b1984b9d099b4e15856d4efbadb3 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -310,6 +310,14 @@ class PLATFORM_EXPORT ResourceRequest final {
void setNavigationStartTime(double);
double navigationStartTime() const { return m_navigationStart; }
+ void setInsecurePolicy(
+ blink::WebInsecureRequestPolicy insecureRequestPolicy) {
+ m_insecureRequestPolicy = insecureRequestPolicy;
+ }
+ blink::WebInsecureRequestPolicy insecureRequestPolicy() const {
+ return m_insecureRequestPolicy;
+ }
+
private:
void initialize(const KURL&);
@@ -361,6 +369,8 @@ class PLATFORM_EXPORT ResourceRequest final {
RedirectStatus m_redirectStatus;
double m_navigationStart = 0;
+
+ blink::WebInsecureRequestPolicy m_insecureRequestPolicy;
};
struct CrossThreadResourceRequestData {
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebURLRequest.cpp ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698