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

Side by Side Diff: content/browser/service_worker/service_worker_cache.cc

Issue 444333006: Rename ServiceWorkerFetchStore/FetchStores/FetchStoresManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetch_stores3
Patch Set: Rebase Created 6 years, 4 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 unified diff | Download patch
OLDNEW
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 #include "content/browser/service_worker/service_worker_fetch_store.h" 5 #include "content/browser/service_worker/service_worker_cache.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // static 13 // static
14 ServiceWorkerFetchStore* ServiceWorkerFetchStore::CreateMemoryStore( 14 ServiceWorkerCache* ServiceWorkerCache::CreateMemoryCache(
15 const std::string& name) { 15 const std::string& name) {
16 return new ServiceWorkerFetchStore(base::FilePath(), name); 16 return new ServiceWorkerCache(base::FilePath(), name);
17 } 17 }
18 18
19 // static 19 // static
20 ServiceWorkerFetchStore* ServiceWorkerFetchStore::CreatePersistentStore( 20 ServiceWorkerCache* ServiceWorkerCache::CreatePersistentCache(
21 const base::FilePath& path, 21 const base::FilePath& path,
22 const std::string& name) { 22 const std::string& name) {
23 return new ServiceWorkerFetchStore(path, name); 23 return new ServiceWorkerCache(path, name);
24 } 24 }
25 25
26 void ServiceWorkerFetchStore::CreateBackend( 26 void ServiceWorkerCache::CreateBackend(
27 const base::Callback<void(bool)>& callback) { 27 const base::Callback<void(bool)>& callback) {
28 callback.Run(true); 28 callback.Run(true);
29 } 29 }
30 30
31 ServiceWorkerFetchStore::ServiceWorkerFetchStore(const base::FilePath& path, 31 ServiceWorkerCache::ServiceWorkerCache(const base::FilePath& path,
32 const std::string& name) 32 const std::string& name)
33 : path_(path), name_(name), id_(0) { 33 : path_(path), name_(name), id_(0) {
34 } 34 }
35 35
36 ServiceWorkerFetchStore::~ServiceWorkerFetchStore() { 36 ServiceWorkerCache::~ServiceWorkerCache() {
37 } 37 }
38 38
39 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_cache.h ('k') | content/browser/service_worker/service_worker_cache_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698