Index: content/browser/service_worker/service_worker_context_core.h |
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h |
index 29120b0a3bf3616560bc91622ea4f0be2e4583d6..62d6a4242e836a951ffa2a27a32a9fb5425fc0f7 100644 |
--- a/content/browser/service_worker/service_worker_context_core.h |
+++ b/content/browser/service_worker/service_worker_context_core.h |
@@ -35,6 +35,7 @@ class SingleThreadTaskRunner; |
} |
namespace storage { |
+class BlobStorageContext; |
class QuotaManagerProxy; |
class SpecialStoragePolicy; |
} |
@@ -51,6 +52,7 @@ class ServiceWorkerNavigationHandleCore; |
class ServiceWorkerProviderHost; |
class ServiceWorkerRegistration; |
class ServiceWorkerStorage; |
+class URLLoaderFactoryGetter; |
// This class manages data associated with service workers. |
// The class is single threaded and should only be used on the IO thread. |
@@ -111,6 +113,8 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
// ServiceWorkerContextWrapper. When Notify() of |observer_list| is called in |
// ServiceWorkerContextCore, the methods of ServiceWorkerContextCoreObserver |
// will be called on the thread which called AddObserver() of |observer_list|. |
+ // |blob_context| and |url_loader_factory_getter| are used only |
+ // when IsServicificationEnabled is true. |
ServiceWorkerContextCore( |
const base::FilePath& user_data_directory, |
std::unique_ptr<ServiceWorkerDatabaseTaskManager> |
@@ -118,6 +122,8 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, |
storage::QuotaManagerProxy* quota_manager_proxy, |
storage::SpecialStoragePolicy* special_storage_policy, |
+ base::WeakPtr<storage::BlobStorageContext> blob_context, |
+ URLLoaderFactoryGetter* url_loader_factory_getter, |
base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>* |
observer_list, |
ServiceWorkerContextWrapper* wrapper); |
@@ -307,6 +313,14 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
int service_worker_provider_id, |
mojom::ServiceWorkerWorkerClientAssociatedPtrInfo client_ptr_info); |
+ base::WeakPtr<storage::BlobStorageContext> blob_storage_context() { |
+ return blob_storage_context_; |
+ } |
+ |
+ URLLoaderFactoryGetter* loader_factory_getter() { |
+ return loader_factory_getter_.get(); |
+ } |
+ |
base::WeakPtr<ServiceWorkerContextCore> AsWeakPtr() { |
return weak_factory_.GetWeakPtr(); |
} |
@@ -380,6 +394,10 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
std::map<int, ServiceWorkerNavigationHandleCore*> |
navigation_handle_cores_map_; |
+ // IsServicificationEnabled |
+ base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; |
+ scoped_refptr<URLLoaderFactoryGetter> loader_factory_getter_; |
+ |
bool force_update_on_page_load_; |
int next_handle_id_; |
int next_registration_handle_id_; |