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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchContext.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: DCHECK. 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/Source/core/fetch/FetchContext.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchContext.h b/third_party/WebKit/Source/core/fetch/FetchContext.h
index 818fef96ec6633237ddeb67de308e493ff3a064a..c12e877d965f79c35d4ffa53b0e5d90f6d1292ef 100644
--- a/third_party/WebKit/Source/core/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/core/fetch/FetchContext.h
@@ -39,6 +39,7 @@
#include "platform/heap/Handle.h"
#include "platform/network/ResourceLoadPriority.h"
#include "platform/network/ResourceRequest.h"
+#include "public/platform/WebInsecureRequestPolicy.h"
#include "wtf/Noncopyable.h"
namespace blink {
@@ -174,6 +175,10 @@ class CORE_EXPORT FetchContext
virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
+ virtual WebInsecureRequestPolicy getInsecureRequestPolicy() const {
+ return kLeaveInsecureRequestsAlone;
+ }
+
protected:
FetchContext() {}
};

Powered by Google App Engine
This is Rietveld 408576698