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

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

Issue 2398733003: Cache SubResourceIntegrity checks at Resource (Closed)
Patch Set: add include 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ScriptResource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/ScriptResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
index fe1e603487b02eb835e852f8b812a0337c7e98cb..47fbbf9062239523b28255f0ef19787b144b4add 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
@@ -57,8 +57,7 @@ ScriptResource::ScriptResource(const ResourceRequest& resourceRequest,
Script,
options,
"application/javascript",
- charset),
- m_integrityDisposition(ScriptIntegrityDisposition::NotChecked) {}
+ charset) {}
ScriptResource::~ScriptResource() {}
@@ -112,18 +111,4 @@ bool ScriptResource::mimeTypeAllowedByNosniff() const {
MIMETypeRegistry::isSupportedJavaScriptMIMEType(httpContentType());
}
-void ScriptResource::setIntegrityDisposition(
- ScriptIntegrityDisposition disposition) {
- DCHECK_NE(disposition, ScriptIntegrityDisposition::NotChecked);
- m_integrityDisposition = disposition;
-}
-bool ScriptResource::mustRefetchDueToIntegrityMetadata(
- const FetchRequest& request) const {
- if (request.integrityMetadata().isEmpty())
- return false;
-
- return !IntegrityMetadata::setsEqual(m_integrityMetadata,
- request.integrityMetadata());
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ScriptResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698