Index: content/browser/service_worker/service_worker_cache.h |
diff --git a/content/browser/service_worker/service_worker_fetch_store.h b/content/browser/service_worker/service_worker_cache.h |
similarity index 57% |
rename from content/browser/service_worker/service_worker_fetch_store.h |
rename to content/browser/service_worker/service_worker_cache.h |
index fb3854590c8f95aa8568b8904b393533a67173af..d8709690f22e8362bb9f04e524dbd50432c8d0ed 100644 |
--- a/content/browser/service_worker/service_worker_fetch_store.h |
+++ b/content/browser/service_worker/service_worker_cache.h |
@@ -2,30 +2,29 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_STORE_H_ |
-#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_STORE_H_ |
+#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_H_ |
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_H_ |
#include "base/callback.h" |
#include "base/files/file_path.h" |
namespace content { |
-// TODO(jkarlin): Fill this in with a real FetchStore implementation as |
+// TODO(jkarlin): Fill this in with a real Cache implementation as |
// specified in |
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html. |
-// TODO(jkarlin): Unload store backend from memory once the store object is no |
+// TODO(jkarlin): Unload cache backend from memory once the cache object is no |
// longer referenced in javascript. |
-// Represents a ServiceWorker FetchStore as seen in |
+// Represents a ServiceWorker Cache as seen in |
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html. |
// InitializeIfNeeded must be called before calling the other public members. |
-class ServiceWorkerFetchStore { |
+class ServiceWorkerCache { |
public: |
- static ServiceWorkerFetchStore* CreateMemoryStore(const std::string& name); |
- static ServiceWorkerFetchStore* CreatePersistentStore( |
- const base::FilePath& path, |
- const std::string& name); |
- virtual ~ServiceWorkerFetchStore(); |
+ static ServiceWorkerCache* CreateMemoryCache(const std::string& name); |
+ static ServiceWorkerCache* CreatePersistentCache(const base::FilePath& path, |
+ const std::string& name); |
+ virtual ~ServiceWorkerCache(); |
// Loads the backend and calls the callback with the result (true for |
// success). This must be called before member functions that require a |
@@ -38,15 +37,15 @@ class ServiceWorkerFetchStore { |
void set_id(int32 id) { id_ = id; } |
private: |
- ServiceWorkerFetchStore(const base::FilePath& path, const std::string& name); |
+ ServiceWorkerCache(const base::FilePath& path, const std::string& name); |
base::FilePath path_; |
std::string name_; |
int32 id_; |
- DISALLOW_COPY_AND_ASSIGN(ServiceWorkerFetchStore); |
+ DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCache); |
}; |
} // namespace content |
-#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_STORE_H_ |
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_H_ |