| 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 c49f1c07077d1fb6f3ce63acb8ece9abc06d57d6..9f0b9a207af26f57f7cd7ad1164ec08f6fbbb5ba 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ScriptResource.h
|
| +++ b/third_party/WebKit/Source/core/fetch/ScriptResource.h
|
| @@ -34,6 +34,12 @@
|
|
|
| namespace blink {
|
|
|
| +enum class ScriptIntegrityDisposition {
|
| + NotChecked = 0,
|
| + Failed,
|
| + Passed
|
| +};
|
| +
|
| class FetchRequest;
|
| class ScriptResource;
|
|
|
| @@ -74,8 +80,9 @@ public:
|
|
|
| void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { m_integrityMetadata = metadata; }
|
| const IntegrityMetadataSet& integrityMetadata() const { return m_integrityMetadata; }
|
| - void setIntegrityAlreadyChecked(bool checked) { m_integrityChecked = checked; }
|
| - bool integrityAlreadyChecked() { return m_integrityChecked; }
|
| + // The argument must never be |NotChecked|.
|
| + void setIntegrityDisposition(ScriptIntegrityDisposition);
|
| + ScriptIntegrityDisposition integrityDisposition() { return m_integrityDisposition; }
|
| bool mustRefetchDueToIntegrityMetadata(const FetchRequest&) const override;
|
|
|
| private:
|
| @@ -92,7 +99,7 @@ private:
|
|
|
| ScriptResource(const ResourceRequest&, const String& charset);
|
|
|
| - bool m_integrityChecked;
|
| + ScriptIntegrityDisposition m_integrityDisposition;
|
| IntegrityMetadataSet m_integrityMetadata;
|
|
|
| CompressibleString m_script;
|
|
|