Index: Source/core/loader/ImageLoader.h |
diff --git a/Source/core/loader/ImageLoader.h b/Source/core/loader/ImageLoader.h |
index ad0deb677452442c09fb8c2f6e9af4b712971c06..77546965a0d53a3ef003625489a64068d5f79d70 100644 |
--- a/Source/core/loader/ImageLoader.h |
+++ b/Source/core/loader/ImageLoader.h |
@@ -26,18 +26,23 @@ |
#include "core/fetch/ImageResource.h" |
#include "core/fetch/ImageResourceClient.h" |
#include "core/fetch/ResourcePtr.h" |
+#include "heap/Handle.h" |
#include "wtf/HashSet.h" |
#include "wtf/text/AtomicString.h" |
namespace WebCore { |
-class ImageLoaderClient { |
+class ImageLoaderClient : public WillBeGarbageCollectedMixin { |
public: |
virtual void notifyImageSourceChanged() = 0; |
// Determines whether the observed ImageResource should have higher priority in the decoded resources cache. |
virtual bool requestsHighLiveResourceCachePriority() { return false; } |
+#if ENABLE(OILPAN) |
haraken
2014/03/10 15:25:03
Would it be possible to avoid adding this flag?
sof
2014/03/10 21:07:21
Certainly; removed.
|
+ virtual void trace(Visitor*) = 0; |
+#endif |
+ |
protected: |
ImageLoaderClient() { } |
}; |
@@ -108,7 +113,7 @@ private: |
Element* m_element; |
ResourcePtr<ImageResource> m_image; |
- HashSet<ImageLoaderClient*> m_clients; |
+ WillBePersistentHeapHashSet<RawPtrWillBeMember<ImageLoaderClient> > m_clients; |
Timer<ImageLoader> m_derefElementTimer; |
AtomicString m_failedLoadURL; |
bool m_hasPendingBeforeLoadEvent : 1; |