| 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 c36c8c6f00416a20028f998483bd92bc2334475a..b78732f2bf16f8f4255deece59644e293c6a9728 100644
|
| --- a/third_party/WebKit/Source/core/fetch/Resource.h
|
| +++ b/third_party/WebKit/Source/core/fetch/Resource.h
|
| @@ -214,6 +214,9 @@ public:
|
| DataBufferingPolicy getDataBufferingPolicy() const { return m_options.dataBufferingPolicy; }
|
| void setDataBufferingPolicy(DataBufferingPolicy);
|
|
|
| + // The isPreloaded() flag is using a counter in order to make sure that even when
|
| + // multiple ResourceFetchers are preloading the resource, it will remain marked as
|
| + // preloaded until *all* of them have used it.
|
| bool isUnusedPreload() const { return isPreloaded() && getPreloadResult() == PreloadNotReferenced; }
|
| bool isPreloaded() const { return m_preloadCount; }
|
| void increasePreloadCount() { ++m_preloadCount; }
|
|
|