summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
diff options
context:
space:
mode:
authorpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-10 13:57:05 +0000
committerpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-10 13:57:05 +0000
commit2edc32ff69735ae01c8ab8d72f782d206af91c72 (patch)
tree8fb45b73223731935d8f1feb865ebfc91c24f59b /webkit/appcache
parente6cc40238ca63abc7eb25fc7426cb4d796f48067 (diff)
downloadchromium_src-2edc32ff69735ae01c8ab8d72f782d206af91c72.zip
chromium_src-2edc32ff69735ae01c8ab8d72f782d206af91c72.tar.gz
chromium_src-2edc32ff69735ae01c8ab8d72f782d206af91c72.tar.bz2
Refactored app cache clear on exit code to happen in the object owning the files.
In an effort to remove the static functions that used to be called from the BrowserProcessImpl very late in the shutdown process and move the code to immediately after the files get freed from their respective users. Which will help to parallelize the shutdown sequence better and ensure files are deleted when they are not used anymore. BUG=65076 TEST=TBA Review URL: http://codereview.chromium.org/6077005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r--webkit/appcache/appcache_storage_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_storage_impl.h b/webkit/appcache/appcache_storage_impl.h
index 584862a..dc49053d 100644
--- a/webkit/appcache/appcache_storage_impl.h
+++ b/webkit/appcache/appcache_storage_impl.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -151,6 +151,9 @@ class AppCacheStorageImpl : public AppCacheStorage {
std::set<GURL> origins_with_groups_;
std::deque<Task*> pending_simple_tasks_;
ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_;
+
+ FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, KeepOnDestruction);
+ FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, RemoveOnDestruction);
};
} // namespace appcache