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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.h

Issue 1578993002: Fix double resource request for script resources with integrity attr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2564
Patch Set: Created 4 years, 11 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/html/parser/PreloadRequest.h
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
index 5cceca0b6fc6bd56fd34e6499247eb1b7063a76d..02081e3441c9b49ce82cfd52cd671a3bd24b6456 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
@@ -7,6 +7,7 @@
#include "core/fetch/ClientHintsPreferences.h"
#include "core/fetch/FetchRequest.h"
+#include "core/fetch/IntegrityMetadata.h"
#include "core/fetch/Resource.h"
#include "platform/weborigin/SecurityPolicy.h"
#include "wtf/Allocator.h"
@@ -50,6 +51,14 @@ public:
bool isAllowCredentials() const { return m_allowCredentials == AllowStoredCredentials; }
const ClientHintsPreferences& preferences() const { return m_clientHintsPreferences; }
ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
+ void setIntegrityMetadata(const IntegrityMetadataSet& metadataSet)
+ {
+ m_integrityMetadata = metadataSet;
+ }
+ IntegrityMetadataSet integrityMetadata() const
+ {
+ return m_integrityMetadata;
+ }
private:
PreloadRequest(const String& initiatorName,
@@ -93,6 +102,7 @@ private:
ClientHintsPreferences m_clientHintsPreferences;
RequestType m_requestType;
ReferrerPolicy m_referrerPolicy;
+ IntegrityMetadataSet m_integrityMetadata;
};
typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream;

Powered by Google App Engine
This is Rietveld 408576698