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

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: Addresses comments from PS4 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 7284b6f4678053b1cf8241bdefdfe15f9ef5eed5..6a63b6b3e37d2dac223c3d911def4bc2636f3135 100644
--- a/content/browser/service_worker/service_worker_cache.cc
+++ b/content/browser/service_worker/service_worker_cache.cc
@@ -565,21 +565,19 @@ void CreateBackendDidCreate(const ServiceWorkerCache::ErrorCallback& callback,
// 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));
}
ServiceWorkerCache::~ServiceWorkerCache() {
@@ -709,14 +707,11 @@ bool ServiceWorkerCache::HasCreatedBackend() const {
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) {
}
« no previous file with comments | « content/browser/service_worker/service_worker_cache.h ('k') | content/browser/service_worker/service_worker_cache_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698