diff options
Diffstat (limited to 'Source/WebCore/loader/appcache/ApplicationCacheResource.h')
-rw-r--r-- | Source/WebCore/loader/appcache/ApplicationCacheResource.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/WebCore/loader/appcache/ApplicationCacheResource.h b/Source/WebCore/loader/appcache/ApplicationCacheResource.h index 2ca7846..6633c6c 100644 --- a/Source/WebCore/loader/appcache/ApplicationCacheResource.h +++ b/Source/WebCore/loader/appcache/ApplicationCacheResource.h @@ -42,10 +42,10 @@ public: Fallback = 1 << 4 }; - static PassRefPtr<ApplicationCacheResource> create(const KURL& url, const ResourceResponse& response, unsigned type, PassRefPtr<SharedBuffer> buffer = SharedBuffer::create()) + static PassRefPtr<ApplicationCacheResource> create(const KURL& url, const ResourceResponse& response, unsigned type, PassRefPtr<SharedBuffer> buffer = SharedBuffer::create(), const String& path = String()) { ASSERT(!url.hasFragmentIdentifier()); - return adoptRef(new ApplicationCacheResource(url, response, type, buffer)); + return adoptRef(new ApplicationCacheResource(url, response, type, buffer, path)); } unsigned type() const { return m_type; } @@ -56,16 +56,20 @@ public: void clearStorageID() { m_storageID = 0; } int64_t estimatedSizeInStorage(); + const String& path() const { return m_path; } + void setPath(const String& path) { m_path = path; } + #ifndef NDEBUG static void dumpType(unsigned type); #endif private: - ApplicationCacheResource(const KURL& url, const ResourceResponse& response, unsigned type, PassRefPtr<SharedBuffer> buffer); + ApplicationCacheResource(const KURL&, const ResourceResponse&, unsigned type, PassRefPtr<SharedBuffer>, const String& path); unsigned m_type; unsigned m_storageID; int64_t m_estimatedSizeInStorage; + String m_path; }; } // namespace WebCore |