Android: Store language .pak files in res/raw rather than assets
[chromium-blink-merge.git] / content / browser / service_worker / service_worker_disk_cache.cc
blob0fa1927c073661acd4edb94e26cd70297b914818
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"
7 namespace content {
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(
36 int64 response_id,
37 ServiceWorkerDiskCache* disk_cache)
38 : AppCacheResponseMetadataWriter(response_id, 0, disk_cache) {
41 } // namespace content