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

Unified Diff: third_party/WebKit/public/platform/WebURLRequest.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Just redirects. Created 4 years 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/public/platform/WebURLRequest.h
diff --git a/third_party/WebKit/public/platform/WebURLRequest.h b/third_party/WebKit/public/platform/WebURLRequest.h
index c58a4e491222d25c0643a790d77ce7e836e6c9af..44f85f3ed85b4966c76957b95247e9008a99ff6f 100644
--- a/third_party/WebKit/public/platform/WebURLRequest.h
+++ b/third_party/WebKit/public/platform/WebURLRequest.h
@@ -34,6 +34,7 @@
#include "WebAddressSpace.h"
#include "WebCommon.h"
#include "WebHTTPBody.h"
+#include "WebInsecureRequestPolicy.h"
#include "WebReferrerPolicy.h"
#include <memory>
@@ -322,6 +323,11 @@ class WebURLRequest {
// https://mikewest.github.io/cors-rfc1918/#external-request
BLINK_PLATFORM_EXPORT bool isExternalRequest() const;
+ // This maps to the "Insecure Requests Policy" concept defined in
+ // https://w3c.github.io/webappsec-upgrade-insecure-requests/#insecure-requests-policy
+ BLINK_PLATFORM_EXPORT WebInsecureRequestPolicy
+ getInsecureRequestPolicy() const;
+
BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const;
BLINK_PLATFORM_EXPORT void setNavigationStartTime(double);

Powered by Google App Engine
This is Rietveld 408576698