| 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 f875a5aa4239b0e30b7db34e31862784a483b250..bd01db332c7124078ab04762360fe12748f3a597 100644
|
| --- a/content/browser/service_worker/service_worker_cache.cc
|
| +++ b/content/browser/service_worker/service_worker_cache.cc
|
| @@ -7,20 +7,28 @@
|
| #include <string>
|
|
|
| #include "base/files/file_path.h"
|
| +#include "content/browser/fileapi/chrome_blob_storage_context.h"
|
| +#include "net/url_request/url_request_context.h"
|
|
|
| namespace content {
|
|
|
| // static
|
| scoped_ptr<ServiceWorkerCache> ServiceWorkerCache::CreateMemoryCache(
|
| - const std::string& name) {
|
| - return make_scoped_ptr(new ServiceWorkerCache(base::FilePath(), name));
|
| + const std::string& name,
|
| + net::URLRequestContext* request_context,
|
| + ChromeBlobStorageContext* blob_context) {
|
| + return make_scoped_ptr(new ServiceWorkerCache(
|
| + base::FilePath(), name, request_context, blob_context));
|
| }
|
|
|
| // static
|
| scoped_ptr<ServiceWorkerCache> ServiceWorkerCache::CreatePersistentCache(
|
| const base::FilePath& path,
|
| - const std::string& name) {
|
| - return make_scoped_ptr(new ServiceWorkerCache(path, name));
|
| + const std::string& name,
|
| + net::URLRequestContext* request_context,
|
| + ChromeBlobStorageContext* blob_context) {
|
| + return make_scoped_ptr(
|
| + new ServiceWorkerCache(path, name, request_context, blob_context));
|
| }
|
|
|
| void ServiceWorkerCache::CreateBackend(
|
| @@ -29,8 +37,15 @@ void ServiceWorkerCache::CreateBackend(
|
| }
|
|
|
| ServiceWorkerCache::ServiceWorkerCache(const base::FilePath& path,
|
| - const std::string& name)
|
| - : path_(path), name_(name), id_(0), weak_ptr_factory_(this) {
|
| + const std::string& name,
|
| + net::URLRequestContext* request_context,
|
| + ChromeBlobStorageContext* blob_context)
|
| + : path_(path),
|
| + name_(name),
|
| + request_context_(request_context),
|
| + blob_storage_context_(blob_context),
|
| + id_(0),
|
| + weak_ptr_factory_(this) {
|
| }
|
|
|
| ServiceWorkerCache::~ServiceWorkerCache() {
|
|
|