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

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

Issue 2397423003: Revert of Cache SubResourceIntegrity checks at Resource (Closed)
Patch Set: Created 4 years, 2 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/ScriptResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.h b/third_party/WebKit/Source/core/fetch/ScriptResource.h
index b0dced710204c954f5cdf670505424aa5f37bfe4..318cc73bd5c9cac1f893aaf39a16b5d0fb3ea60d 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.h
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.h
@@ -75,6 +75,19 @@
bool mimeTypeAllowedByNosniff() const;
+ void setIntegrityMetadata(const IntegrityMetadataSet& metadata) {
+ m_integrityMetadata = metadata;
+ }
+ const IntegrityMetadataSet& integrityMetadata() const {
+ return m_integrityMetadata;
+ }
+ // The argument must never be |NotChecked|.
+ void setIntegrityDisposition(ScriptIntegrityDisposition);
+ ScriptIntegrityDisposition integrityDisposition() {
+ return m_integrityDisposition;
+ }
+ bool mustRefetchDueToIntegrityMetadata(const FetchRequest&) const override;
+
private:
class ScriptResourceFactory : public ResourceFactory {
public:
@@ -91,6 +104,9 @@
const ResourceLoaderOptions&,
const String& charset);
+ ScriptIntegrityDisposition m_integrityDisposition;
+ IntegrityMetadataSet m_integrityMetadata;
+
AtomicString m_script;
};
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698