summaryrefslogtreecommitdiffstats
path: root/WebCore/page
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2009-07-21 13:10:06 +0100
committerAndrei Popescu <andreip@google.com>2009-07-21 13:31:30 +0100
commitc60802dd50f86c37e0596d41c3ef6fc2c8804da4 (patch)
treeef54137cbf064976e5f146c125691c40fb1136d3 /WebCore/page
parentce39e03a248f9bee3e746c15e7961b3e40a871ed (diff)
downloadexternal_webkit-c60802dd50f86c37e0596d41c3ef6fc2c8804da4.zip
external_webkit-c60802dd50f86c37e0596d41c3ef6fc2c8804da4.tar.gz
external_webkit-c60802dd50f86c37e0596d41c3ef6fc2c8804da4.tar.bz2
Implements a mechanism that limit the growth of the application cache
Diffstat (limited to 'WebCore/page')
-rw-r--r--WebCore/page/ChromeClient.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/page/ChromeClient.h b/WebCore/page/ChromeClient.h
index e155754..46f37f3 100644
--- a/WebCore/page/ChromeClient.h
+++ b/WebCore/page/ChromeClient.h
@@ -139,6 +139,15 @@ namespace WebCore {
virtual void exceededDatabaseQuota(Frame*, const String& databaseName) = 0;
#endif
+#if ENABLE(OFFLINE_WEB_APPLICATIONS)
+ // Callback invoked when the application cache fails to save a cache object
+ // because storing it would grow the database file past its defined maximum
+ // size or past the amount of free space on the device.
+ // The chrome client would need to take some action such as evicting some
+ // old caches.
+ virtual void reachedMaxAppCacheSize(int64_t spaceNeeded) = 0;
+#endif
+
#if ENABLE(DASHBOARD_SUPPORT)
virtual void dashboardRegionsChanged();
#endif