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
3 // found in the LICENSE file.
5 #include "content/browser/service_worker/service_worker_disk_cache.h"
9 scoped_ptr
<ServiceWorkerDiskCache
>
10 ServiceWorkerDiskCache::CreateWithBlockFileBackend() {
11 return make_scoped_ptr(
12 new ServiceWorkerDiskCache(false /* use_simple_cache*/));
15 scoped_ptr
<ServiceWorkerDiskCache
>
16 ServiceWorkerDiskCache::CreateWithSimpleBackend() {
17 return make_scoped_ptr(
18 new ServiceWorkerDiskCache(true /* use_simple_cache */));
21 ServiceWorkerDiskCache::ServiceWorkerDiskCache(bool use_simple_cache
)
22 : AppCacheDiskCache(use_simple_cache
) {
25 ServiceWorkerResponseReader::ServiceWorkerResponseReader(
26 int64 response_id
, ServiceWorkerDiskCache
* disk_cache
)
27 : AppCacheResponseReader(response_id
, 0, disk_cache
) {
30 ServiceWorkerResponseWriter::ServiceWorkerResponseWriter(
31 int64 response_id
, ServiceWorkerDiskCache
* disk_cache
)
32 : AppCacheResponseWriter(response_id
, 0, disk_cache
) {
35 ServiceWorkerResponseMetadataWriter::ServiceWorkerResponseMetadataWriter(
37 ServiceWorkerDiskCache
* disk_cache
)
38 : AppCacheResponseMetadataWriter(response_id
, 0, disk_cache
) {
41 } // namespace content