Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: content/browser/service_worker/service_worker_disk_cache.cc

Issue 1155063002: ServiceWorker: Introduce ServiceWorkerDiskCacheMigrator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add DCHECKs Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698