| 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 CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 int64 last_deletable_response_rowid_; | 169 int64 last_deletable_response_rowid_; |
| 170 | 170 |
| 171 // Created on the IO thread, but only used on the DB thread. | 171 // Created on the IO thread, but only used on the DB thread. |
| 172 AppCacheDatabase* database_; | 172 AppCacheDatabase* database_; |
| 173 | 173 |
| 174 // Set if we discover a fatal error like a corrupt SQL database or | 174 // Set if we discover a fatal error like a corrupt SQL database or |
| 175 // disk cache and cannot continue. | 175 // disk cache and cannot continue. |
| 176 bool is_disabled_; | 176 bool is_disabled_; |
| 177 | 177 |
| 178 scoped_ptr<AppCacheDiskCache> disk_cache_; | 178 scoped_ptr<AppCacheDiskCache> disk_cache_; |
| 179 base::OneShotTimer<AppCacheStorageImpl> lazy_commit_timer_; | 179 base::OneShotTimer lazy_commit_timer_; |
| 180 | 180 |
| 181 // Used to short-circuit certain operations without having to schedule | 181 // Used to short-circuit certain operations without having to schedule |
| 182 // any tasks on the background database thread. | 182 // any tasks on the background database thread. |
| 183 std::deque<base::Closure> pending_simple_tasks_; | 183 std::deque<base::Closure> pending_simple_tasks_; |
| 184 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; | 184 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; |
| 185 | 185 |
| 186 friend class content::AppCacheStorageImplTest; | 186 friend class content::AppCacheStorageImplTest; |
| 187 friend class content::ChromeAppCacheServiceTest; | 187 friend class content::ChromeAppCacheServiceTest; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace content | 190 } // namespace content |
| 191 | 191 |
| 192 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 192 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
| OLD | NEW |