OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. Use of this source |
| 2 // code is governed by a BSD-style license that can be found in the LICENSE |
| 3 // file. |
| 4 |
| 5 #include "content/browser/service_worker/service_worker_fetch_store.h" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/files/file_path.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 // static |
| 14 ServiceWorkerFetchStore* ServiceWorkerFetchStore::CreateMemoryStore( |
| 15 const std::string& name) { |
| 16 return new ServiceWorkerFetchStore(base::FilePath(), name); |
| 17 } |
| 18 |
| 19 // static |
| 20 ServiceWorkerFetchStore* ServiceWorkerFetchStore::CreatePersistentStore( |
| 21 const base::FilePath& path, |
| 22 const std::string& name) { |
| 23 return new ServiceWorkerFetchStore(path, name); |
| 24 } |
| 25 |
| 26 void ServiceWorkerFetchStore::InitializeIfNeeded( |
| 27 const base::Callback<void(bool)>& callback) { |
| 28 callback.Run(true); |
| 29 } |
| 30 |
| 31 ServiceWorkerFetchStore::ServiceWorkerFetchStore(const base::FilePath& path, |
| 32 const std::string& name) |
| 33 : path_(path), name_(name), id_(0) { |
| 34 } |
| 35 |
| 36 ServiceWorkerFetchStore::~ServiceWorkerFetchStore() { |
| 37 } |
| 38 |
| 39 } // namespace content |
OLD | NEW |