Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1347)

Unified Diff: webkit/appcache/appcache_storage_impl.h

Issue 6077005: Refactored app cache clear on exit code to happen in the object owning the files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed s/2010/2011/ in appacache_storage_impl.h Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/browser/browser_process_impl.cc ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_storage_impl.h
diff --git a/webkit/appcache/appcache_storage_impl.h b/webkit/appcache/appcache_storage_impl.h
index 584862aa72730bf9a4425ac6c46ebfe119d66b54..725188ac6a792ef66e4f0386d93f6cc35fbddc80 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.
@@ -52,6 +52,14 @@ class AppCacheStorageImpl : public AppCacheStorage {
const GURL& manifest_url, const std::vector<int64>& response_ids);
virtual void PurgeMemory();
+ protected:
+ AppCacheDiskCache* disk_cache();
+ // Used by the ChromeAppCacheService unit tests.
+ AppCacheDatabase* database() { return database_; }
+
+ FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, KeepOnDestruction);
+ FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, RemoveOnDestruction);
+
private:
friend class AppCacheStorageImplTest;
@@ -112,8 +120,6 @@ class AppCacheStorageImpl : public AppCacheStorage {
const GURL& fallback_url, const AppCacheEntry& fallback_entry,
int64 cache_id, const GURL& manifest_url);
- AppCacheDiskCache* disk_cache();
-
// The directory in which we place files in the file system.
FilePath cache_directory_;
scoped_refptr<base::MessageLoopProxy> cache_thread_;
« chrome/browser/browser_process_impl.cc ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698