| OLD | NEW |
| 1 // Copyright (c) 2011 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> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // disk cache and cannot continue. | 150 // disk cache and cannot continue. |
| 151 bool is_disabled_; | 151 bool is_disabled_; |
| 152 | 152 |
| 153 // TODO(michaeln): use a disk_cache per group (manifest or group_id). | 153 // TODO(michaeln): use a disk_cache per group (manifest or group_id). |
| 154 scoped_ptr<AppCacheDiskCache> disk_cache_; | 154 scoped_ptr<AppCacheDiskCache> disk_cache_; |
| 155 | 155 |
| 156 // Used to short-circuit certain operations without having to schedule | 156 // Used to short-circuit certain operations without having to schedule |
| 157 // any tasks on the background database thread. | 157 // any tasks on the background database thread. |
| 158 std::deque<Task*> pending_simple_tasks_; | 158 std::deque<Task*> pending_simple_tasks_; |
| 159 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; | 159 ScopedRunnableMethodFactory<AppCacheStorageImpl> method_factory_; |
| 160 | |
| 161 FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, KeepOnDestruction); | |
| 162 FRIEND_TEST_ALL_PREFIXES(ChromeAppCacheServiceTest, RemoveOnDestruction); | |
| 163 }; | 160 }; |
| 164 | 161 |
| 165 } // namespace appcache | 162 } // namespace appcache |
| 166 | 163 |
| 167 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 164 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| OLD | NEW |