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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2790693002: Split CSP into pre- and post-upgrade checks (Closed)
Patch Set: add mkwst TODO Created 3 years, 8 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/core/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index 1bf5355ad91d8ae7e4645ce9c6885266a3fb8175..6f43e8b0d3fd303b5de3debc09b52fc193612622 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -32,11 +32,13 @@
#define FrameFetchContext_h
#include "core/CoreExport.h"
+#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/loader/BaseFetchContext.h"
#include "platform/heap/Handle.h"
#include "platform/loader/fetch/FetchParameters.h"
#include "platform/loader/fetch/ResourceFetcher.h"
#include "platform/loader/fetch/ResourceRequest.h"
+#include "platform/network/ContentSecurityPolicyParsers.h"
#include "platform/wtf/Forward.h"
namespace blink {
@@ -123,6 +125,13 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
const ResourceLoaderOptions&,
SecurityViolationReportingPolicy,
FetchParameters::OriginRestriction) const override;
+ ResourceRequestBlockedReason CanFollowRedirect(
+ Resource::Type,
+ const ResourceRequest&,
+ const KURL&,
+ const ResourceLoaderOptions&,
+ SecurityViolationReportingPolicy,
+ FetchParameters::OriginRestriction) const override;
ResourceRequestBlockedReason AllowResponse(
Resource::Type,
const ResourceRequest&,
@@ -141,9 +150,12 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
void AddConsoleMessage(const String&,
LogMessageType = kLogErrorMessage) const override;
- void PopulateResourceRequest(Resource::Type,
+ void PopulateResourceRequest(const KURL&,
+ Resource::Type,
const ClientHintsPreferences&,
const FetchParameters::ResourceWidth&,
+ const ResourceLoaderOptions&,
+ SecurityViolationReportingPolicy,
ResourceRequest&) override;
void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override;
@@ -188,6 +200,14 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
FetchParameters::OriginRestriction,
ResourceRequest::RedirectStatus) const;
+ ResourceRequestBlockedReason CheckCSPForRequest(
+ const ResourceRequest&,
+ const KURL&,
+ const ResourceLoaderOptions&,
+ SecurityViolationReportingPolicy,
+ ResourceRequest::RedirectStatus,
+ ContentSecurityPolicy::CheckHeaderType) const;
+
Member<DocumentLoader> document_loader_;
};
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698