summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/loader/appcache/ApplicationCacheStorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/loader/appcache/ApplicationCacheStorage.h')
-rw-r--r--Source/WebCore/loader/appcache/ApplicationCacheStorage.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebCore/loader/appcache/ApplicationCacheStorage.h b/Source/WebCore/loader/appcache/ApplicationCacheStorage.h
index f283670..3136b52 100644
--- a/Source/WebCore/loader/appcache/ApplicationCacheStorage.h
+++ b/Source/WebCore/loader/appcache/ApplicationCacheStorage.h
@@ -74,6 +74,7 @@ public:
ApplicationCacheGroup* fallbackCacheGroupForURL(const KURL&); // Cache that has a fallback entry to load a main resource from if normal loading fails.
ApplicationCacheGroup* findOrCreateCacheGroup(const KURL& manifestURL);
+ ApplicationCacheGroup* findInMemoryCacheGroup(const KURL& manifestURL) const;
void cacheGroupDestroyed(ApplicationCacheGroup*);
void cacheGroupMadeObsolete(ApplicationCacheGroup*);
@@ -95,7 +96,6 @@ public:
void vacuumDatabaseFile();
void getOriginsWithCache(HashSet<RefPtr<SecurityOrigin>, SecurityOriginHash>&);
- void deleteEntriesForOrigin(SecurityOrigin*);
void deleteAllEntries();
static int64_t unknownQuota() { return -1; }
@@ -113,6 +113,9 @@ private:
bool store(ApplicationCacheResource*, unsigned cacheStorageID);
bool ensureOriginRecord(const SecurityOrigin*);
+ bool shouldStoreResourceAsFlatFile(ApplicationCacheResource*);
+ void deleteTables();
+ bool writeDataToUniqueFileInDirectory(SharedBuffer*, const String& directory, String& outFilename);
void loadManifestHostHashes();
@@ -124,6 +127,8 @@ private:
bool executeSQLCommand(const String&);
void checkForMaxSizeReached();
+ void checkForDeletedResources();
+ long long flatFileAreaSize();
String m_cacheDirectory;
String m_cacheFile;