| Index: third_party/WebKit/Source/core/fetch/Resource.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
|
| index acc142bf961cf53bc93bc6af0fce71e08f48a2fb..43cbdde622aeb1fd32cfa7898cead163384e18ac 100644
|
| --- a/third_party/WebKit/Source/core/fetch/Resource.h
|
| +++ b/third_party/WebKit/Source/core/fetch/Resource.h
|
| @@ -194,8 +194,6 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
|
| bool passesAccessControlCheck(SecurityOrigin*,
|
| String& errorDescription) const;
|
|
|
| - bool isEligibleForIntegrityCheck(SecurityOrigin*) const;
|
| -
|
| virtual PassRefPtr<const SharedBuffer> resourceBuffer() const {
|
| return m_data;
|
| }
|
| @@ -253,10 +251,21 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
|
| bool isCacheValidator() const { return m_isRevalidating; }
|
| bool hasCacheControlNoStoreHeader() const;
|
| bool hasVaryHeader() const;
|
| - virtual bool mustRefetchDueToIntegrityMetadata(
|
| - const FetchRequest& request) const {
|
| - return false;
|
| +
|
| + bool isEligibleForIntegrityCheck(SecurityOrigin*) const;
|
| +
|
| + void setIntegrityMetadata(const IntegrityMetadataSet& metadata) {
|
| + m_integrityMetadata = metadata;
|
| + }
|
| + const IntegrityMetadataSet& integrityMetadata() const {
|
| + return m_integrityMetadata;
|
| }
|
| + // The argument must never be |NotChecked|.
|
| + void setIntegrityDisposition(ResourceIntegrityDisposition);
|
| + ResourceIntegrityDisposition integrityDisposition() const {
|
| + return m_integrityDisposition;
|
| + }
|
| + bool mustRefetchDueToIntegrityMetadata(const FetchRequest&) const;
|
|
|
| double currentAge() const;
|
| double freshnessLifetime();
|
| @@ -407,6 +416,9 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
|
| bool m_isRevalidating : 1;
|
| bool m_isAlive : 1;
|
|
|
| + ResourceIntegrityDisposition m_integrityDisposition;
|
| + IntegrityMetadataSet m_integrityMetadata;
|
| +
|
| // Ordered list of all redirects followed while fetching this resource.
|
| Vector<RedirectPair> m_redirectChain;
|
|
|
|
|