| 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;
|
| };
|
|
|
|
|