From 2edc32ff69735ae01c8ab8d72f782d206af91c72 Mon Sep 17 00:00:00 2001 From: "pastarmovj@chromium.org" Date: Mon, 10 Jan 2011 13:57:05 +0000 Subject: 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 --- webkit/appcache/appcache_storage_impl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'webkit/appcache') 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 origins_with_groups_; std::deque pending_simple_tasks_; ScopedRunnableMethodFactory method_factory_; + + FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, KeepOnDestruction); + FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, RemoveOnDestruction); }; } // namespace appcache -- cgit v1.1