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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 void CallOnMainResponseFound(DelegateReferenceVector* delegates, | 139 void CallOnMainResponseFound(DelegateReferenceVector* delegates, |
140 const GURL& url, | 140 const GURL& url, |
141 const AppCacheEntry& entry, | 141 const AppCacheEntry& entry, |
142 const GURL& namespace_entry_url, | 142 const GURL& namespace_entry_url, |
143 const AppCacheEntry& fallback_entry, | 143 const AppCacheEntry& fallback_entry, |
144 int64_t cache_id, | 144 int64_t cache_id, |
145 int64_t group_id, | 145 int64_t group_id, |
146 const GURL& manifest_url); | 146 const GURL& manifest_url); |
147 | 147 |
| 148 // Don't call this when |is_disabled_| is true. |
148 CONTENT_EXPORT AppCacheDiskCache* disk_cache(); | 149 CONTENT_EXPORT AppCacheDiskCache* disk_cache(); |
149 | 150 |
150 // The directory in which we place files in the file system. | 151 // The directory in which we place files in the file system. |
151 base::FilePath cache_directory_; | 152 base::FilePath cache_directory_; |
152 bool is_incognito_; | 153 bool is_incognito_; |
153 | 154 |
154 // This class operates primarily on the IO thread, but schedules | 155 // This class operates primarily on the IO thread, but schedules |
155 // its DatabaseTasks on the db thread. Separately, the disk_cache uses | 156 // its DatabaseTasks on the db thread. Separately, the disk_cache uses |
156 // the cache thread. | 157 // the cache thread. |
157 scoped_refptr<base::SingleThreadTaskRunner> db_thread_; | 158 scoped_refptr<base::SingleThreadTaskRunner> db_thread_; |
(...skipping 28 matching lines...) Expand all Loading... |
186 std::deque<base::Closure> pending_simple_tasks_; | 187 std::deque<base::Closure> pending_simple_tasks_; |
187 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; | 188 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; |
188 | 189 |
189 friend class content::AppCacheStorageImplTest; | 190 friend class content::AppCacheStorageImplTest; |
190 friend class content::ChromeAppCacheServiceTest; | 191 friend class content::ChromeAppCacheServiceTest; |
191 }; | 192 }; |
192 | 193 |
193 } // namespace content | 194 } // namespace content |
194 | 195 |
195 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ | 196 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ |
OLD | NEW |