Index: Source/core/loader/cache/CachedResource.h |
diff --git a/Source/core/loader/cache/CachedResource.h b/Source/core/loader/cache/CachedResource.h |
index 6473ec448426e3201e2e01f19983775cec636cda..90741d9e4e088be235938372233195cf857adbfe 100644 |
--- a/Source/core/loader/cache/CachedResource.h |
+++ b/Source/core/loader/cache/CachedResource.h |
@@ -27,6 +27,7 @@ |
#include "core/loader/FrameLoaderTypes.h" |
#include "core/loader/ResourceLoaderOptions.h" |
#include "core/loader/cache/CachePolicy.h" |
+#include "core/loader/cache/CachedResourceInitiatorInfo.h" |
#include "core/platform/PurgePriority.h" |
#include "core/platform/Timer.h" |
#include "core/platform/network/ResourceError.h" |
@@ -250,6 +251,9 @@ public: |
virtual bool canReuse(const ResourceRequest&) const { return true; } |
+ const CachedResourceInitiatorInfo& initiatorInfo() const { return m_initiatorInfo; } |
+ void setInitiatorInfo(const CachedResourceInitiatorInfo& initiatorInfo) { m_initiatorInfo = initiatorInfo; } |
+ |
protected: |
virtual void checkNotify(); |
virtual void finishOnePart(); |
@@ -354,6 +358,8 @@ private: |
// These handles will need to be updated to point to the m_resourceToRevalidate in case we get 304 response. |
HashSet<CachedResourceHandleBase*> m_handlesToRevalidate; |
+ |
+ CachedResourceInitiatorInfo m_initiatorInfo; |
}; |
} |