Index: content/browser/service_worker/service_worker_disk_cache.cc |
diff --git a/content/browser/service_worker/service_worker_disk_cache.cc b/content/browser/service_worker/service_worker_disk_cache.cc |
index 4b6237ff2346a926a380768351d7bd00fb64758a..0fa1927c073661acd4edb94e26cd70297b914818 100644 |
--- a/content/browser/service_worker/service_worker_disk_cache.cc |
+++ b/content/browser/service_worker/service_worker_disk_cache.cc |
@@ -6,6 +6,22 @@ |
namespace content { |
+scoped_ptr<ServiceWorkerDiskCache> |
+ServiceWorkerDiskCache::CreateWithBlockFileBackend() { |
+ return make_scoped_ptr( |
+ new ServiceWorkerDiskCache(false /* use_simple_cache*/)); |
+} |
+ |
+scoped_ptr<ServiceWorkerDiskCache> |
+ServiceWorkerDiskCache::CreateWithSimpleBackend() { |
+ return make_scoped_ptr( |
+ new ServiceWorkerDiskCache(true /* use_simple_cache */)); |
+} |
+ |
+ServiceWorkerDiskCache::ServiceWorkerDiskCache(bool use_simple_cache) |
+ : AppCacheDiskCache(use_simple_cache) { |
+} |
+ |
ServiceWorkerResponseReader::ServiceWorkerResponseReader( |
int64 response_id, ServiceWorkerDiskCache* disk_cache) |
: AppCacheResponseReader(response_id, 0, disk_cache) { |