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 a8066ef6e97e8cb0c18a6bd1a3447aa9b2043f2c..285b9ff139aff2677f3de16cd1c48182ac80060a 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.h |
+++ b/third_party/WebKit/Source/core/fetch/Resource.h |
@@ -295,6 +295,17 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>, |
virtual bool canReuse(const ResourceRequest&) const { return true; } |
+ virtual void willReloadAfterDiskCacheMiss() {} |
+ |
+ void deactivateCacheAwareLoading() { |
+ m_resourceRequest.deactivateCacheAwareLoading(); |
+ } |
+ |
+ // TODO(632580): Workaround to persist cache-aware state, remove after fixed. |
+ void setResourceRequest(const ResourceRequest& resourceRequest) { |
+ m_resourceRequest = resourceRequest; |
+ } |
+ |
// Used by the MemoryCache to reduce the memory consumption of the entry. |
void prune(); |