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

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

Issue 2936623002: Implement dumb URLLoader{Factory} for ServiceWorker script loading (for try)
Patch Set: . Created 3 years, 6 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
Index: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index a41d24539c4d0d08b3f70a0c9328b7b76858048a..ea9b7b3704b54b4d5fac89640fc5b7dad374f723 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -34,9 +34,11 @@ class SpecialStoragePolicy;
namespace content {
class BrowserContext;
+class ChromeBlobStorageContext;
class ResourceContext;
class ServiceWorkerContextObserver;
class StoragePartitionImpl;
+class URLLoaderFactoryGetter;
// A refcounted wrapper class for our core object. Higher level content lib
// classes keep references to this class on mutliple threads. The inner core
@@ -61,9 +63,13 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Init and Shutdown are for use on the UI thread when the profile,
// storagepartition is being setup and torn down.
+ // |blob_context| and |url_loader_factory_getter| are used only
+ // when IsServicificationEnabled is true.
void Init(const base::FilePath& user_data_directory,
storage::QuotaManagerProxy* quota_manager_proxy,
- storage::SpecialStoragePolicy* special_storage_policy);
+ storage::SpecialStoragePolicy* special_storage_policy,
+ ChromeBlobStorageContext* blob_context,
+ URLLoaderFactoryGetter* url_loader_factory_getter);
void Shutdown();
// Must be called on the IO thread.
@@ -265,7 +271,9 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
std::unique_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager,
const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread,
storage::QuotaManagerProxy* quota_manager_proxy,
- storage::SpecialStoragePolicy* special_storage_policy);
+ storage::SpecialStoragePolicy* special_storage_policy,
+ ChromeBlobStorageContext* blob_context,
+ URLLoaderFactoryGetter* url_loader_factory_getter);
void ShutdownOnIO();
void DidFindRegistrationForFindReady(

Powered by Google App Engine
This is Rietveld 408576698