OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // The map of cache names to their integer ids. | 153 // The map of cache names to their integer ids. |
154 NameMap name_map_; | 154 NameMap name_map_; |
155 | 155 |
156 // The file path for this CacheStorage. | 156 // The file path for this CacheStorage. |
157 base::FilePath origin_path_; | 157 base::FilePath origin_path_; |
158 | 158 |
159 // The TaskRunner to run file IO on. | 159 // The TaskRunner to run file IO on. |
160 scoped_refptr<base::SequencedTaskRunner> cache_task_runner_; | 160 scoped_refptr<base::SequencedTaskRunner> cache_task_runner_; |
161 | 161 |
162 // Performs backend specific operations (memory vs disk). | 162 // Performs backend specific operations (memory vs disk). |
163 scoped_refptr<CacheLoader> cache_loader_; | 163 scoped_ptr<CacheLoader> cache_loader_; |
164 | 164 |
165 base::WeakPtrFactory<ServiceWorkerCacheStorage> weak_factory_; | 165 base::WeakPtrFactory<ServiceWorkerCacheStorage> weak_factory_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheStorage); | 167 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheStorage); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace content | 170 } // namespace content |
171 | 171 |
172 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ | 172 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_H_ |
OLD | NEW |