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..4f4100111fd52b3882f51bd7b949dcee730f42e8 100644 |
--- a/content/browser/service_worker/service_worker_cache.cc |
+++ b/content/browser/service_worker/service_worker_cache.cc |
@@ -7,20 +7,29 @@ |
#include <string> |
#include "base/files/file_path.h" |
+#include "content/browser/fileapi/chrome_blob_storage_context.h" |
jkarlin
2014/08/12 19:22:15
I'll remove this
jkarlin
2014/08/13 00:14:00
Done.
|
+#include "net/url_request/url_request_context.h" |
+#include "webkit/browser/blob/blob_storage_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, |
+ base::WeakPtr<webkit_blob::BlobStorageContext> 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, |
+ base::WeakPtr<webkit_blob::BlobStorageContext> blob_context) { |
+ return make_scoped_ptr( |
+ new ServiceWorkerCache(path, name, request_context, blob_context)); |
} |
void ServiceWorkerCache::CreateBackend( |
@@ -28,9 +37,17 @@ void ServiceWorkerCache::CreateBackend( |
callback.Run(true); |
} |
-ServiceWorkerCache::ServiceWorkerCache(const base::FilePath& path, |
- const std::string& name) |
- : path_(path), name_(name), id_(0), weak_ptr_factory_(this) { |
+ServiceWorkerCache::ServiceWorkerCache( |
+ const base::FilePath& path, |
+ const std::string& name, |
+ net::URLRequestContext* request_context, |
+ base::WeakPtr<webkit_blob::BlobStorageContext> blob_context) |
+ : path_(path), |
+ name_(name), |
+ request_context_(request_context), |
+ blob_storage_context_(blob_context), |
+ id_(0), |
+ weak_ptr_factory_(this) { |
} |
ServiceWorkerCache::~ServiceWorkerCache() { |