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