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

Unified Diff: third_party/WebKit/Source/platform/loader/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: 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
Index: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h b/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
index 1c42354aef35490eb6a4584312f9b79fca473e6a..51838f3c53f1e1302069e731e27d8bfed7f343e5 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
@@ -39,6 +39,7 @@
#include "platform/loader/fetch/Resource.h"
#include "platform/network/ResourceLoadPriority.h"
#include "platform/network/ResourceRequest.h"
+#include "public/platform/WebInsecureRequestPolicy.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
@@ -187,6 +188,10 @@ class PLATFORM_EXPORT FetchContext
virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; }
+ virtual WebInsecureRequestPolicy getInsecureRequestPolicy() const {
+ return kLeaveInsecureRequestsAlone;
+ }
+
protected:
FetchContext() {}
};

Powered by Google App Engine
This is Rietveld 408576698