summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-13 22:14:46 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-13 22:14:46 +0000
commit520cdd71da6f80dfffdd384645792de9a61abc94 (patch)
tree9c299ddab2d1bc22f0cceb9a361cd5b00952d08a /webkit/appcache
parentc4a9b44a974e39f23100e9ef1e122648b84470e3 (diff)
downloadchromium_src-520cdd71da6f80dfffdd384645792de9a61abc94.zip
chromium_src-520cdd71da6f80dfffdd384645792de9a61abc94.tar.gz
chromium_src-520cdd71da6f80dfffdd384645792de9a61abc94.tar.bz2
Introduce a notification to trigger memory purging on the IO thread and use it in ChromeAppCacheService.
TEST=manual BUG=none Review URL: http://codereview.chromium.org/547016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r--webkit/appcache/appcache_service.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_service.h b/webkit/appcache/appcache_service.h
index 05e9329..986e620 100644
--- a/webkit/appcache/appcache_service.h
+++ b/webkit/appcache/appcache_service.h
@@ -26,6 +26,11 @@ class AppCacheService {
void Initialize(const FilePath& cache_directory);
+ void PurgeMemory() {
+ if (storage_.get())
+ storage_->PurgeMemory();
+ }
+
// Context for use during cache updates, should only be accessed
// on the IO thread. We do NOT add a reference to the request context,
// it is the callers responsibility to ensure that the pointer