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

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

Issue 2056183002: Implement the `require-sri-for` CSP directive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated tests Created 4 years, 5 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/fetch/ResourceLoaderOptions.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoaderOptions.h b/third_party/WebKit/Source/core/fetch/ResourceLoaderOptions.h
index 1fb9193f63b0a72f7e64d934da2510144dc513b4..69d180c1d44231f6aebcc2e3fe647e7066e6d67b 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceLoaderOptions.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceLoaderOptions.h
@@ -32,6 +32,7 @@
#define ResourceLoaderOptions_h
#include "core/fetch/FetchInitiatorInfo.h"
+#include "core/fetch/IntegrityMetadata.h"
#include "platform/CrossThreadCopier.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "wtf/Allocator.h"
@@ -137,6 +138,7 @@ public:
CORSEnabled corsEnabled; // If the resource is loaded out-of-origin, whether or not to use CORS.
RefPtr<SecurityOrigin> securityOrigin;
String contentSecurityPolicyNonce;
+ IntegrityMetadataSet integrityMetadata;
};
// Encode AtomicString (in FetchInitiatorInfo) as String to cross threads.
@@ -153,6 +155,7 @@ struct CrossThreadResourceLoaderOptionsData {
, corsEnabled(options.corsEnabled)
, securityOrigin(options.securityOrigin ? options.securityOrigin->isolatedCopy() : nullptr)
, contentSecurityPolicyNonce(options.contentSecurityPolicyNonce)
+ , integrityMetadata(options.integrityMetadata)
{
}
@@ -169,6 +172,7 @@ struct CrossThreadResourceLoaderOptionsData {
options.corsEnabled = corsEnabled;
options.securityOrigin = securityOrigin;
options.contentSecurityPolicyNonce = contentSecurityPolicyNonce;
+ options.integrityMetadata = integrityMetadata;
return options;
}
@@ -182,6 +186,7 @@ struct CrossThreadResourceLoaderOptionsData {
CORSEnabled corsEnabled;
RefPtr<SecurityOrigin> securityOrigin;
String contentSecurityPolicyNonce;
+ IntegrityMetadataSet integrityMetadata;
};
template <>
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FetchRequest.h ('k') | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698