Index: third_party/WebKit/Source/core/fetch/Resource.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp |
index 9271ff3424ae4c4d85ef0c0b2bd035d2808f6228..18a832cbc4dfbf7314b2fbb6c22c8f4b74f15d45 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp |
@@ -818,6 +818,16 @@ void Resource::prune() |
destroyDecodedDataIfPossible(); |
} |
+bool Resource::isReloadable() const |
+{ |
+ ResourceClientWalker<ResourceClient> w(m_finishedClients); |
+ while (ResourceClient* c = w.next()) { |
+ if (!c->isReloadable()) |
+ return false; |
+ } |
+ return true; |
+} |
+ |
void Resource::prepareToSuspend() |
{ |
prune(); |