| 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 0b715d659d3eb230a62885cf8cc296cc81777114..f8cf5385c4862114792b82e7681060a4ca110174 100644
|
| --- a/content/browser/service_worker/service_worker_cache.h
|
| +++ b/content/browser/service_worker/service_worker_cache.h
|
| @@ -9,8 +9,14 @@
|
| #include "base/files/file_path.h"
|
| #include "base/memory/weak_ptr.h"
|
|
|
| +namespace net {
|
| +class URLRequestContext;
|
| +}
|
| +
|
| namespace content {
|
|
|
| +class ChromeBlobStorageContext;
|
| +
|
| // TODO(jkarlin): Fill this in with a real Cache implementation as
|
| // specified in
|
| // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html.
|
| @@ -23,10 +29,15 @@ namespace content {
|
| class ServiceWorkerCache {
|
| public:
|
| static scoped_ptr<ServiceWorkerCache> CreateMemoryCache(
|
| - const std::string& name);
|
| + const std::string& name,
|
| + net::URLRequestContext* request_context,
|
| + ChromeBlobStorageContext* blob_context);
|
| static scoped_ptr<ServiceWorkerCache> CreatePersistentCache(
|
| const base::FilePath& path,
|
| - const std::string& name);
|
| + const std::string& name,
|
| + net::URLRequestContext* request_context,
|
| + ChromeBlobStorageContext* blob_context);
|
| +
|
| virtual ~ServiceWorkerCache();
|
|
|
| // Loads the backend and calls the callback with the result (true for
|
| @@ -44,10 +55,15 @@ class ServiceWorkerCache {
|
| }
|
|
|
| private:
|
| - ServiceWorkerCache(const base::FilePath& path, const std::string& name);
|
| + ServiceWorkerCache(const base::FilePath& path,
|
| + const std::string& name,
|
| + net::URLRequestContext* request_context,
|
| + ChromeBlobStorageContext* blob_context);
|
|
|
| base::FilePath path_;
|
| std::string name_;
|
| + net::URLRequestContext* request_context_;
|
| + ChromeBlobStorageContext* blob_storage_context_;
|
| int32 id_;
|
|
|
| base::WeakPtrFactory<ServiceWorkerCache> weak_ptr_factory_;
|
|
|