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

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: 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: 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 09b58183fd9e0717ee776f2f549b0cd958e33800..0ea04f8b0d82b092ccf6a48e864c7676deeb89ae 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"
namespace blink {
@@ -308,6 +309,9 @@ public:
// https://mikewest.github.io/cors-rfc1918/#external-request
BLINK_PLATFORM_EXPORT bool isExternalRequest() const;
+ // The insecure request policy of the context which created this request.
+ BLINK_PLATFORM_EXPORT WebInsecureRequestPolicy getInsecureRequestPolicy() const;
+
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();
BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const;

Powered by Google App Engine
This is Rietveld 408576698