diff options
author | Andrei Popescu <andreip@google.com> | 2009-07-21 13:10:06 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-07-21 13:31:30 +0100 |
commit | c60802dd50f86c37e0596d41c3ef6fc2c8804da4 (patch) | |
tree | ef54137cbf064976e5f146c125691c40fb1136d3 /WebKit/mac | |
parent | ce39e03a248f9bee3e746c15e7961b3e40a871ed (diff) | |
download | external_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 'WebKit/mac')
-rw-r--r-- | WebKit/mac/WebCoreSupport/WebChromeClient.h | 3 | ||||
-rw-r--r-- | WebKit/mac/WebCoreSupport/WebChromeClient.mm | 7 | ||||
-rw-r--r-- | WebKit/mac/WebKit.exp | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/WebKit/mac/WebCoreSupport/WebChromeClient.h b/WebKit/mac/WebCoreSupport/WebChromeClient.h index 6c3d71e..6974cb1 100644 --- a/WebKit/mac/WebCoreSupport/WebChromeClient.h +++ b/WebKit/mac/WebCoreSupport/WebChromeClient.h @@ -107,6 +107,9 @@ public: #if ENABLE(DATABASE) virtual void exceededDatabaseQuota(WebCore::Frame*, const WebCore::String& databaseName); #endif +#if ENABLE(OFFLINE_WEB_APPLICATIONS) + virtual void reachedMaxAppCacheSize(int64_t spaceNeeded); +#endif virtual void populateVisitedLinks(); #if ENABLE(DASHBOARD_SUPPORT) diff --git a/WebKit/mac/WebCoreSupport/WebChromeClient.mm b/WebKit/mac/WebCoreSupport/WebChromeClient.mm index 18c73e9..2ca86d1 100644 --- a/WebKit/mac/WebCoreSupport/WebChromeClient.mm +++ b/WebKit/mac/WebCoreSupport/WebChromeClient.mm @@ -517,6 +517,13 @@ void WebChromeClient::exceededDatabaseQuota(Frame* frame, const String& database END_BLOCK_OBJC_EXCEPTIONS; } #endif + +#if ENABLE(OFFLINE_WEB_APPLICATIONS) +void WebChromeClient::reachedMaxAppCacheSize(int64_t spaceNeeded) +{ + // FIXME: Free some space. +} +#endif void WebChromeClient::populateVisitedLinks() { diff --git a/WebKit/mac/WebKit.exp b/WebKit/mac/WebKit.exp index d166894..cb26943 100644 --- a/WebKit/mac/WebKit.exp +++ b/WebKit/mac/WebKit.exp @@ -1,3 +1,4 @@ +.objc_class_name_WebApplicationCache .objc_class_name_WebArchive .objc_class_name_WebBackForwardList .objc_class_name_WebCache |