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

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

Issue 503823002: Creates CacheContext for ServiceWorkerCacheStorage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_cache.cc
diff --git a/content/browser/service_worker/service_worker_cache.cc b/content/browser/service_worker/service_worker_cache.cc
index 4219f190cc6bfe53ab964913372ff1d00379fe01..02b489bcf9303c624414c6e8cd59ce6910a0736c 100644
--- a/content/browser/service_worker/service_worker_cache.cc
+++ b/content/browser/service_worker/service_worker_cache.cc
@@ -14,21 +14,19 @@ namespace content {
// static
scoped_ptr<ServiceWorkerCache> ServiceWorkerCache::CreateMemoryCache(
- const std::string& name,
net::URLRequestContext* request_context,
base::WeakPtr<storage::BlobStorageContext> blob_context) {
- return make_scoped_ptr(new ServiceWorkerCache(
- base::FilePath(), name, request_context, blob_context));
+ return make_scoped_ptr(
+ new ServiceWorkerCache(base::FilePath(), request_context, blob_context));
}
// static
scoped_ptr<ServiceWorkerCache> ServiceWorkerCache::CreatePersistentCache(
const base::FilePath& path,
- const std::string& name,
net::URLRequestContext* request_context,
base::WeakPtr<storage::BlobStorageContext> blob_context) {
return make_scoped_ptr(
- new ServiceWorkerCache(path, name, request_context, blob_context));
+ new ServiceWorkerCache(path, request_context, blob_context));
}
void ServiceWorkerCache::CreateBackend(
@@ -42,14 +40,11 @@ base::WeakPtr<ServiceWorkerCache> ServiceWorkerCache::AsWeakPtr() {
ServiceWorkerCache::ServiceWorkerCache(
const base::FilePath& path,
- const std::string& name,
net::URLRequestContext* request_context,
base::WeakPtr<storage::BlobStorageContext> blob_context)
: path_(path),
- name_(name),
request_context_(request_context),
blob_storage_context_(blob_context),
- id_(0),
weak_ptr_factory_(this) {
}

Powered by Google App Engine
This is Rietveld 408576698