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

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

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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_cache.h
diff --git a/content/browser/service_worker/service_worker_cache.h b/content/browser/service_worker/service_worker_cache.h
index 6eac2a74940b2588a841fa22aafb3bc709fae3c9..42393a29e1ea10cfff90b9b8babb2f788bd89d3e 100644
--- a/content/browser/service_worker/service_worker_cache.h
+++ b/content/browser/service_worker/service_worker_cache.h
@@ -47,12 +47,10 @@ class CONTENT_EXPORT ServiceWorkerCache {
scoped_ptr<storage::BlobDataHandle>)>
ResponseCallback;
static scoped_ptr<ServiceWorkerCache> CreateMemoryCache(
- const std::string& name,
net::URLRequestContext* request_context,
base::WeakPtr<storage::BlobStorageContext> blob_context);
static scoped_ptr<ServiceWorkerCache> CreatePersistentCache(
const base::FilePath& path,
- const std::string& name,
net::URLRequestContext* request_context,
base::WeakPtr<storage::BlobStorageContext> blob_context);
@@ -88,25 +86,18 @@ class CONTENT_EXPORT ServiceWorkerCache {
void set_backend(scoped_ptr<disk_cache::Backend> backend) {
backend_ = backend.Pass();
}
- void set_name(const std::string& name) { name_ = name; }
- const std::string& name() const { return name_; }
- int32 id() const { return id_; }
- void set_id(int32 id) { id_ = id; }
base::WeakPtr<ServiceWorkerCache> AsWeakPtr();
private:
ServiceWorkerCache(const base::FilePath& path,
- const std::string& name,
net::URLRequestContext* request_context,
base::WeakPtr<storage::BlobStorageContext> blob_context);
scoped_ptr<disk_cache::Backend> backend_;
base::FilePath path_;
- std::string name_;
net::URLRequestContext* request_context_;
base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
- int32 id_;
base::WeakPtrFactory<ServiceWorkerCache> weak_ptr_factory_;
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698