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

Side by Side 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: One more unittest change. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <vector> 11 #include <vector>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool is_disabled_; 144 bool is_disabled_;
145 145
146 // TODO(michaeln): use a disk_cache per group (manifest or group_id). 146 // TODO(michaeln): use a disk_cache per group (manifest or group_id).
147 scoped_ptr<AppCacheDiskCache> disk_cache_; 147 scoped_ptr<AppCacheDiskCache> disk_cache_;
148 148
149 // Used to short-circuit certain operations without having to schedule 149 // Used to short-circuit certain operations without having to schedule
150 // any tasks on the background database thread. 150 // any tasks on the background database thread.
151 std::set<GURL> origins_with_groups_; 151 std::set<GURL> origins_with_groups_;
152 std::deque<Task*> pending_simple_tasks_; 152 std::deque<Task*> pending_simple_tasks_;
153 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; 153 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_;
154
155 FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, KeepOnDestruction);
156 FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, RemoveOnDestruction);
154 }; 157 };
155 158
156 } // namespace appcache 159 } // namespace appcache
157 160
158 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 161 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698