diff options
Diffstat (limited to 'WebCore/loader/DocLoader.h')
-rw-r--r-- | WebCore/loader/DocLoader.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/WebCore/loader/DocLoader.h b/WebCore/loader/DocLoader.h index 407d85a..b87b622 100644 --- a/WebCore/loader/DocLoader.h +++ b/WebCore/loader/DocLoader.h @@ -26,6 +26,7 @@ #define DocLoader_h #include "CachedResource.h" +#include "CachedResourceHandle.h" #include "CachePolicy.h" #include "StringHash.h" #include <wtf/HashMap.h> @@ -70,8 +71,10 @@ public: // Logs an access denied message to the console for the specified URL. void printAccessDeniedMessage(const KURL& url) const; - CachedResource* cachedResource(const String& url) const { return m_docResources.get(url); } - const HashMap<String, CachedResource*>& allCachedResources() const { return m_docResources; } + CachedResource* cachedResource(const String& url) const { return m_documentResources.get(url).get(); } + + typedef HashMap<String, CachedResourceHandle<CachedResource> > DocumentResourceMap; + const DocumentResourceMap& allCachedResources() const { return m_documentResources; } bool autoLoadImages() const { return m_autoLoadImages; } void setAutoLoadImages(bool); @@ -82,8 +85,7 @@ public: bool shouldBlockNetworkImage(const String& url) const; #endif - CachePolicy cachePolicy() const { return m_cachePolicy; } - void setCachePolicy(CachePolicy); + CachePolicy cachePolicy() const; Frame* frame() const; // Can be NULL Document* doc() const { return m_doc; } @@ -118,8 +120,7 @@ private: Cache* m_cache; HashSet<String> m_reloadedURLs; - mutable HashMap<String, CachedResource*> m_docResources; - CachePolicy m_cachePolicy; + mutable DocumentResourceMap m_documentResources; Document* m_doc; int m_requestCount; |