OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |