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

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: Rebase. :( Created 3 years, 10 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 | « third_party/WebKit/Source/platform/network/ResourceRequestTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84aa69ff411b5fe2604d8ec9fe8eb8abba02870d..1aaed32d9ae0a478d66b531e877b8cecccb7a8c7 100644
--- a/third_party/WebKit/public/platform/WebURLRequest.h
+++ b/third_party/WebKit/public/platform/WebURLRequest.h
@@ -31,11 +31,12 @@
#ifndef WebURLRequest_h
#define WebURLRequest_h
+#include <memory>
#include "WebAddressSpace.h"
#include "WebCommon.h"
#include "WebHTTPBody.h"
+#include "WebInsecureRequestPolicy.h"
#include "WebReferrerPolicy.h"
-#include <memory>
namespace blink {
@@ -331,6 +332,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);
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceRequestTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698