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

Unified Diff: content/browser/service_worker/service_worker_fetch_store.cc

Issue 424863002: Fill in some of ServiceWorkerFetchStores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cache_storage
Patch Set: Asynchronous cache init 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_fetch_store.cc
diff --git a/content/browser/service_worker/service_worker_fetch_store.cc b/content/browser/service_worker/service_worker_fetch_store.cc
new file mode 100644
index 0000000000000000000000000000000000000000..da942ab31133f3f913b91132752c60c0d60caa76
--- /dev/null
+++ b/content/browser/service_worker/service_worker_fetch_store.cc
@@ -0,0 +1,39 @@
+// Copyright 2014 The Chromium Authors. All rights reserved. Use of this source
+// code is governed by a BSD-style license that can be found in the LICENSE
+// file.
+
+#include "content/browser/service_worker/service_worker_fetch_store.h"
+
+#include <string>
+
+#include "base/files/file_path.h"
+
+namespace content {
+
+// static
+ServiceWorkerFetchStore* ServiceWorkerFetchStore::CreateMemoryStore(
+ const std::string& name) {
+ return new ServiceWorkerFetchStore(base::FilePath(), name);
+}
+
+// static
+ServiceWorkerFetchStore* ServiceWorkerFetchStore::CreatePersistentStore(
+ const base::FilePath& path,
+ const std::string& name) {
+ return new ServiceWorkerFetchStore(path, name);
+}
+
+void ServiceWorkerFetchStore::InitializeIfNeeded(
+ const base::Callback<void(bool)>& callback) {
+ callback.Run(true);
+}
+
+ServiceWorkerFetchStore::ServiceWorkerFetchStore(const base::FilePath& path,
+ const std::string& name)
+ : path_(path), name_(name), id_(0) {
+}
+
+ServiceWorkerFetchStore::~ServiceWorkerFetchStore() {
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698